IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
report_log_fselrepeater_hist.m
Go to the documentation of this file.
1 %> @brief Single histogram report
3  properties
4  %> Cell of subsetsprocessor objects
6  %> =def_peakdetector()
8  %> =[]. Hint dataset
9  data_hint;
10  %> ='kun' (Kuncheva) (@sa feacons_kun.m) Feature stability type
11  stabilitytype = 'kun';
12  end;
13 
14  methods
15  function o = report_log_fselrepeater_hist()
16  o.classtitle = 'Histogram report';
17  o.inputclass = 'log_fselrepeater';
18  o.flag_params = 1;
19  o.flag_ui = 1;
20  end;
21  end;
22 
23  methods(Access=protected)
24  function out = do_use(o, log)
25  out = log_html();
26 
27  s = '<h1>Histogram</h1>';
28 
29  out.html = [s, o.get_html_graphics(log)];
30  out.title = log.get_description();
31  end;
32  end;
33 
34 
35  methods
36  %> Generates a table with the best in each architecture, with its respective time and confidence interval
37  %> @param log a solog_merger_fhg object
38  function s = get_html_graphics(o, log)
39  s = '';
40 
42  hist = ssp.use(log);
43 
44  v = vis_stackedhists();
45  v.data_hint = o.data_hint;
46  v.peakdetector = def_peakdetector(o.peakdetector);
47 
48 
49  figure;
50  v.use(hist);
52  s = cat(2, s, o.save_n_close([], 0, []));
53 
54  figure;
55  v.use(hist);
57  legend off;
58  maximize_window(gcf(), 4);
59  s = cat(2, s, o.save_n_close());
60 
61  % Stability curve
62  ds_stab = log.extract_dataset_stabilities(o.stabilitytype, 'uni');
63  ov = vis_means();
64  figure;
65  ov.use(ds_stab);
66  legend off;
67  title('');
68 % maximize_window(gcf(), 2);
69  s = cat(2, s, o.save_n_close([], 0));
70  end;
71  end;
72 end
function maximize_window(in h, in aspectratio, in normalizedsize)
Peak Detector.
Definition: peakdetector.m:6
function def_peakdetector(in out)
function show_legend_only()
Visualization - Stacked histograms.
Generated by fselrepeater, carries subsets of features.
Generated by irreport, carries HTML contents.
Definition: log_html.m:2
Visualization - Class means.
Definition: vis_means.m:2
function def_subsetsprocessor(in out)
Processor of a set of subsets of features.
Report base class.
Definition: irreport.m:8
function make_axis_gray()
function feacons_kun(in s1, in s2, in nf)