IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
grag_classes_first.m
Go to the documentation of this file.
1 %> @file
2 %> @ingroup groupgroup
3 
4 %> @brief Group Aggregator - Classes - First row
5 %>
6 %> Useful to aggregate test dataset to compare with aggregated @c estimato. Assigns the class of first group observation to the group class; @c X left empty.
8  methods
9  function o = grag_classes_first(o)
10  o.classtitle = 'First Row';
11  end;
12  end;
13 
14  methods(Access=protected)
15  function o = process_group(o, idxs)
16  o.outdata.classes(o.no_out) = o.indata.classes(idxs(1));
17  end;
18 
19  function o = dim_outdata(o, ng)
20  o.outdata.classes(ng, 1) = 0;
21  end;
22  end;
23 end
function compare(in o1, in o2)
Group Aggregator - classes.
Definition: grag_classes.m:5
Dataset representing estimation.
Definition: estimato.m:4
Group Aggregator - Classes - First row.