IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
report_soitem_sovalues.m
Go to the documentation of this file.
1 %> @brief Comparison and p-values tables
2 %>
3 %> Compares performance estimations between several system set-ups
4 %>
5 %> @todo implement the params GUI
7  properties
8  %> =1. Whether to generate the p-values tables
9  flag_ptable = 1;
10 
11  %> ={'rates', 'times3'}
12  names = {'rates', 'times3'}
13 
14  %> vectorcomp_ttest_right() with no logtake. vectorcomp object used tor the p-values tables
15  vectorcomp = [];
16 
17  %> Maximum number of table rows
18  maxrows = 20;
19  end;
20 
21  methods
22  function o = report_soitem_sovalues()
23  o.classtitle = '1D comparison table';
24  o.inputclass = 'soitem_sovalues';
25  o.flag_params = 0;
26  end;
27  end;
28 
29  methods(Access=protected)
30  function out = do_use(o, obj)
31  out = log_html();
32 
34  r.dimspec = {[0, 0], [1, 2]};
35  r.flag_ptable = o.flag_ptable;
36  r.names = o.names;
37  r.vectorcomp = o.vectorcomp;
38  r.maxrows = o.maxrows;
39 
40  out.html = [o.get_standardheader(obj), r.get_html_tables(obj.sovalues)];
41  out.title = obj.get_description();
42  end;
43  end;
44 
45  methods
46  function v = some_items(o, nar, choiceidx)
47  if isempty(choiceidx)
48  v = 1:o.maxrows;
49  else
50  A = .4;
51 % share1 = A;
52  share2 = 1-A; % percentages of items destinated for the first items and items around choiceidx respectively
53 
54  nit = min(o.maxrows, nar);
55 
56  i1 = floor(choiceidx-share2/2*nit);
57  i2 = ceil(choiceidx+share2/2*nit);
58  i0 = nit-((i2-i1)+1);
59 
60  if i1 <= i0
61  dif = i0-i1+1;
62  i1 = i1+dif;
63  i2 = i2+dif;
64  end;
65 
66  if i2 > nar;
67  dif = i2-nar;
68  i1 = i1-dif;
69  i2 = i2-dif;
70  end;
71 
72  v = [1:i0, i1:i2];
73  end;
74  end;
75  end;
76 end
Comparison and p-values tables.
Property flag_ptable
=1. Whether to generate the p-values tables
Comparison and p-values tables.
Generated by irreport, carries HTML contents.
Definition: log_html.m:2
Paired Vector Comparer base class.
Definition: vectorcomp.m:9
Vector Comparer - paired t-test right tail.
Base for all reports that operate on a soitem object.
Definition: report_soitem.m:2