IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
vis_as_fsel_hist_entropy.m
Go to the documentation of this file.
1 %> @brief Draws entropy curves based on a as_fsel_hist object
2 %>
3 %> @todo this is obsolete. Should take log_hist as input, not as_fsel_hist (which doesn't exist anymore)
4 classdef vis_as_fsel_hist_entropy < vis
5  properties
6  %> ={[Inf, 0, 0], [1, 2]}
7  %> @sa sovalues.m
8  dimspec = {[Inf, 0, 0], [1, 2]};
9 
10  %> =rates
11  valuesfieldname = 'rates';
12 
13  %> =1.
14  flag_legend;
15 
16  %> =[]
17  ylimits;
18 
19  %> =[]
20  xticks;
21 
22  %> =[]
23  xticklabels;
24 
25  %>
26  flag_star = 1;
27 
28  flag_hachure = 0;
29  end;
30 
31 
32  methods
33  %> Constructor
34  function o = vis_as_fsel_hist_entropy(o) %#ok<*INUSD>
35  o.classtitle = 'Entropy curves';
36  o.inputclass = 'as_fsel_hist';
37  end;
38  end;
39 
40 
41  methods(Access=protected)
42  function out = do_use(o, a)
43  out = [];
44 
45  % Plots entropies both individual and accumulated hitss
46  subplot(1, 2, 1);
47  plot(hitsentropy(a.hitss, 'uni'), 'LineWidth', scaled(2.5));
48  title('Entropy of each histogram');
49  format_frank();
50  make_box();
51 
52  subplot(1, 2, 2);
53  plot(hitsentropy(a.hitss, 'accum'), 'LineWidth', scaled(2.5));
54  title('Entropy of accumulated histogram');
55  format_frank();
56  make_box();
57  end;
58  end;
59 end
Generated by subsetsprocessor, carries a histogram.
Definition: log_hist.m:2
Analysis Session (AS) base class.
Definition: as.m:6