IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

Parses expression into classmaps.

Facilitates generation of lists of sub-datasets – specified by the classes that go into each – using expression strings.

"Variables" in ss must match class labels from the level. Expression will be evaluated using eval() after creating classsplitter objects whose variable names match those of the class labels of the level.

Possible operators are "+", "-" (unary minus), and "~".

Example:

if flag_julio
dslila = ul_load_data(1);
ss = {'-JT', '~-JT'};
else
dslila = ul_load_data(2);
ss = {'-AA', '~-AA'};
end;
dslila = data_select_hierarchy(dslila, [1, 2, 3]);
HIE_DATA = 1;
HIE_SPLIT = 2;
classmaps = parse_classmaps(ss, dslila.classlabels, HIE_DATA, HIE_SPLIT);
no_cases = numel(classmaps{1});
See also
classsplitter

Definition in file parse_classmaps.m.

Go to the source code of this file.

Functions

function parse_classmaps (in ss, in classlabels, in hie_base, in hie_split)
 

Function Documentation

function parse_classmaps ( in  ss,
in  classlabels,
in  hie_base,
in  hie_split 
)
Parameters
ssCell of strings.
classlabels
hie_basehierarchical dataset level
hie_splithierarchical split level