IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
as_fsel_grades_super.m
Go to the documentation of this file.
1 %> @brief "Super-object" encapsulating both a @ref as_fsel_grades and a @ref as_grades_data object
2 %>
3 %> This class allows the input to be a dataset (@ref irdata) instead of a @ref log_grades
4 %>
5 %> @arg The @ref as_grades_data object calculates the grades vector, whereas ...
6 %> @arg the @ref as_fsel_grades performs itself the feature selection.
8  properties
9  %> @ref as_grades_data object
10  as_grades_data;
11 
12  %> @ref as_fsel_grades object
14  end;
15 
16  properties(Dependent)
17  %> Number of features to be selected
18  nf_select;
19  end;
20 
21  methods
22  function o = as_fsel_grades_super()
23  o.classtitle = 'Grades super-object';
24  o.flag_ui = 0;
25  end;
26 
27  function n = get.nf_select(o)
28  n = NaN;
29  if ~isempty(o.as_fsel_grades)
30  n = o.as_fsel_grades.nf_select;
31  end;
32  end;
33 
34  function o = set.nf_select(o, n)
35  if ~isempty(o.as_fsel_grades)
36  o.as_fsel_grades.nf_select = n;
37  end;
38  end;
39  end;
40 
41  methods(Access=protected)
42  function log2 = do_use(o, data)
43  log1 = o.as_grades_data.use(data);
44  log2 = o.as_fsel_grades.use(log1);
45  end;
46  end;
47 end
"Super-object" encapsulating both a as_fsel_grades and a as_grades_data object
Dataset class.
Definition: irdata.m:30
Generated by a as_grades object, carries a "grades" vector; usually.
Definition: log_grades.m:2
Analysis Session that produces a log_as_fsel.
Definition: as_fsel.m:2
Feature Selection based on a "grades" vector.