IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
vis_log_grades.m
Go to the documentation of this file.
1 %> @brief Visualization - Grades vector calculated by any @ref as_grades
2 %>
3 %> @sa uip_vis_log_grades.m
4 classdef vis_log_grades < vis
5  properties
6  data_hint = [];
7  flag_trace_minalt = 0;
8  flag_abs = 0;
10  flag_envelope = 0;
11  flag_bmtable = 0;
12  end;
13 
14  methods
15  function o = vis_log_grades(o)
16  o.classtitle = 'Grades';
17  o.inputclass = 'log_grades';
18  end;
19  end;
20 
21  methods(Access=protected)
22  function out = do_use(o, obj)
23  out = [];
24 
25  flag_p = ~isempty(o.peakdetector);
26  if ~isempty(o.data_hint)
27  hintx = o.data_hint.fea_x;
28  hinty = mean(o.data_hint.X, 1);
29  else
30  hintx = [];
31  hinty = [];
32  end;
33 
34  if ~o.flag_bmtable
35  draw_loadings(obj.fea_x, obj.grades, hintx, hinty, [], o.flag_abs, ...
36  o.peakdetector, o.flag_trace_minalt, flag_p, flag_p, 0, o.flag_envelope);
37  else
38  draw_loadings_pl(obj.fea_x, obj.grades, hintx, hinty, [], o.flag_abs, ...
39  o.peakdetector);
40  end;
41  format_xaxis(obj);
42  format_yaxis(obj);
43  set_title(o.classtitle, obj);
44  make_box();
45  end;
46  end;
47 end
Analysis Session that outputs a log_grades.
Definition: as_grades.m:2
function make_box()
Generated by a as_grades object, carries a "grades" vector; usually.
Definition: log_grades.m:2
Peak Detector.
Definition: peakdetector.m:6
Visualization base class.
Definition: vis.m:4
function draw_loadings(in x, in L, in x_hint, in hint, in legends, in flag_abs, in peakd, in flag_trace_minalt, in flag_draw_peaks, in flag_print_peaks, in flag_histogram, in flag_envelope, in colors)
Visualization - Grades vector calculated by any as_grades.
Definition: vis_log_grades.m:4
function format_yaxis(in par)
function set_title(in s, in obj)
function draw_loadings_pl(in x, in L, in x_hint, in hint, in legends, in flag_abs, in peakd, in colorindexes)
function format_xaxis(in par)