4 %> Optimization sub-sets
8 %> Whether the selected features are peaks
18 o.classtitle = 'Grades';
19 o.moreactions = [o.moreactions, {
'extract_dataset'}];
23 %> Creates a dataset with one row containing the @ref opt_grades
property.
26 function out = extract_dataset(o)
27 if isempty(o.opt_subsets)
28 irerror('Object contains no information about optimization of number of features');
32 out.X = o.opt_grades(:)'; % row vector
34 out.classlabels = {o.
yunit};
35 out.fea_x = 1:numel(o.opt_grades);
36 out.xname =
'Number of features';
40 out.title =
'Optimization of number of features';
41 out = out.assert_fix();
49 %> @arg Draws threshold line
50 %> @arg Draws hachures only
if threshold mode
52 function o = draw(o, data_hint, flag_mark)
53 if ~exist('data_hint', 'var')
57 if ~exist('flag_mark', 'var')
62 o.draw_grades(data_hint, 0);
76 methods(Access=protected)
77 %> Checks for existence of Inf's and calculates ymax automatically
78 function o = draw_hachures2(o)
79 if strcmp(o.type, 'threshold')
83 o.draw_hachures(o.fea_x, ymax);
87 function o = draw_threshold(o)
88 if strcmp(o.type, 'threshold')
93 function o = draw_peaks(o)
95 draw_peaks(o.fea_x, o.grades, o.v, flag_text);
function draw_peaks(in x, in y, in indexes, in flag_text, in color, in marker, in markersize)
Property yunit
y-axis unit, defaults to 'a.u.'
Log generated by an as_fsel class.
function draw_threshold_line(in x, in y, in width, in color)
Property flag_ui
(GUI setting) Whether to "publish" in blockmenu and datatool. Note that a class can be "published" wi...
Log generated by as_fsel_grades.
Feature Selection based on a "grades" vector.