1 %> @ingroup conversion classlabelsgroup
string
3 %> @brief Parses expression into classmaps
5 %> Facilitates generation of lists of sub-datasets -- specified by the classes that go into each --
using expression
8 %>
"Variables" in @c ss must match
class labels from the @hie_base level. Expression will be evaluated using @c eval()
9 %> after creating @c
classsplitter objects whose variable names match those of the
class labels of the @hie_base level.
11 %> Possible operators are
"+",
"-" (unary minus), and
"~".
16 %> dslila = ul_load_data(1);
17 %> ss = {
'-JT',
'~-JT'};
19 %> dslila = ul_load_data(2);
20 %> ss = {
'-AA',
'~-AA'};
25 %> classmaps =
parse_classmaps(ss, dslila.classlabels, HIE_DATA, HIE_SPLIT);
26 %> no_cases = numel(classmaps{1});
31 %> @param ss Cell of strings.
33 %> @param hie_base hierarchical dataset level
34 %> @param hie_split hierarchical split level
38 varnames = unique(cellmaps(:, 3));
40 o.classlabels = classlabels;
41 o.hie_base = hie_base;
42 o.hie_split = hie_split;
43 for i = 1:numel(varnames)
44 o = o.set_baselabel(varnames{i});
45 eval([varnames{i}
' = o;']);
function data_select_hierarchy(in data, in hierarchy)
Used by parse_classmaps.m.
function parse_classmaps(in ss, in classlabels, in hie_base, in hie_split)
function classlabels2cell(in classlabels, in new_hierarchy)