![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Base Sub-dataset Generation Specification (SGS) class.
This class generates index maps to sub-datasets, formulating these maps according to various criteria, including cross-validation, random sub-sampling, and weighted sub-sampling.
Public Member Functions | |
function | sgs (in o) |
function get | no_pieces (in o) |
If hasn't been setup yet, will return a NaN. More... | |
function | setup (in o, in data) |
function | get_obsidxs (in o, in data) |
Solves o.no_unitss. More... | |
function | assert (in o) |
Data-independent validation. Can be used at the GUI to check for parameter inconsistencies. More... | |
function | get_description (in o, in flag_short) |
function | setbatch (in o, in params) |
Sets several properties of an object at once. More... | |
function | get_methodname (in o, in flag_short) |
function | get_report (in o) |
Object reports are plain text. HTML would be cool but c'mon, we don't need that sophistication. More... | |
function | get_html (in o, in flag_stylesheet) |
function | get_params (in o, in data) |
Calls Parameters GUI. More... | |
function | extract_log (in o) |
function | get_ancestry (in o, in flag_title) |
Public Attributes | |
Property | flag_group |
=0. Whether items from the same group (group) are to always remain together. More... | |
Property | flag_perclass |
=0. Whether to perform on each class separately. More... | |
Property | randomseed |
Property | no_pieces |
read-only More... | |
Property | title |
Property | color |
Protected Member Functions | |
function | get_repidxs (in o) |
keyboard; More... | |
function | do_setup (in o) |
Must be implemented at the descendants. More... | |
function | do_assert (in o) |
Data-independent validation. More... | |
function | do_get_report (in o) |
Default report. More... | |
function | do_get_html (in o) |
Abstract. HTML inner body. More... | |
Protected Attributes | |
Property | flag_setup |
Property | data |
Property | pieces |
Property | no_unitss |
Property | maps |
Property | pr_flag_group |
Calculated upon setup, will be zero if flag_group but dataset has no groups. More... | |
Property | classtitle |
Class Title. Should have a descriptive name, as short as possible. More... | |
Property | short |
Short for the method name. More... | |
Property | flag_params |
Property | flag_ui |
(GUI setting) Whether to "publish" in blockmenu and datatool. Note that a class can be "published" without a GUI (set flag_params=0 in this case, at the class constructor). More... | |
Property | moreactions |
(GUI setting) String cell containing names of methods that may be called from the GUIs More... | |
function sgs::sgs | ( | in | o | ) |
function sgs::assert | ( | in | o | ) |
Data-independent validation. Can be used at the GUI to check for parameter inconsistencies.
|
protected |
Data-independent validation.
|
protectedinherited |
Abstract. HTML inner body.
|
protectedinherited |
Default report.
|
protected |
Must be implemented at the descendants.
|
inherited |
o |
|
inherited |
o | |
flag_title=1 |
|
inherited |
Returns description string
Precedence according with flag_short:
flag_short=0 | I am sealing this to make sure that no class will try to improvise on this function. |
|
inherited |
flag_stylesheet=1 | Whether to include the stylesheet in the HTML |
|
inherited |
This is used only to compose sequence string e.g. xxx->yyy->zzz
flag_short=0 |
function sgs::get_obsidxs | ( | in | o, |
in | data | ||
) |
Solves o.no_unitss.
|
inherited |
Calls Parameters GUI.
If flag_params
, tries uip_<class>.m. If fails, tries uip_<ancestor>.m and so on
|
protected |
keyboard;
In the grouped, per-class case, converts to per-piece observation to later use the common fragment belowMust be implemented at the descendants, this is essentially what is different for every different sgs method This function is group-or-observation-unaware Returns a 1D cell array or 2D cell arrays. Each element/2D cell array contains one row per piece and one column per bite. This function does not know if it is working with groups or observations
|
inherited |
Object reports are plain text. HTML would be cool but c'mon, we don't need that sophistication.
function get sgs::no_pieces | ( | in | o | ) |
If hasn't been setup yet, will return a NaN.
|
inherited |
Sets several properties of an object at once.
o | |
params | Cell followint the pattern{'property1', value1, 'property2', value2, ...} |
function sgs::setup | ( | in | o, |
in | data | ||
) |
|
protectedinherited |
|
inherited |
Property sgs::flag_group |
|
protectedinherited |
=1. (GUI setting) Whether to call a GUI when the block is selected in blockmenu.m . If true, a routine called "uip_"<class name> will be called.
Property sgs::flag_perclass |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
Property sgs::randomseed |
|
protectedinherited |