IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
def_subsetsprocessors.m
Go to the documentation of this file.
1 %>@ingroup idata
2 %> @file
3 %> @brief Returns a cell of subsetsprocessors
4 %>
5 %> Please check the source code for exact definition.
6 %>
7 %> @sa subsetsprocessor
8 %
9 %> @param Returns a cell of subsetprocesso objects
10 function out = def_subsetsprocessors()
11 
12 MINHITS_PERC = 0.031;
13 
14 out = {};
15 
16 % Four subsetsprocessor
17 ii = [1, 2, 3, 5];
18 for i = 1:numel(ii)
19  ssp = subsetsprocessor();
20  ssp.nf4grades = ii(i);
21  ssp.nf4gradesmode = 'fixed';
22  ssp.title = sprintf('%d informative feature%s', ii(i), iif(ii(i) == 1, '', 's'));
23  out{end+1} = ssp;
24 end;
25 
26 % A fifth
27 ssp = subsetsprocessor();
28 ssp.nf4grades = [];
29 ssp.nf4gradesmode = 'fixed';
30 ssp.title = 'All informative';
31 out{end+1} = ssp;
32 
33 % A sixth
34 ssp = subsetsprocessor();
35 ssp.nf4grades = [];
36 ssp.nf4gradesmode = 'fixed';
37 ssp.minhits_perc = MINHITS_PERC;
38 ssp.title = sprintf('All informative with minimum hits of %.1f%%', MINHITS_PERC*100);
39 out{end+1} = ssp;
40 %
41 % ssp = subsetsprocessor();
42 % ssp.nf4gradesmode = 'stability';
43 % ssp.stabilitythreshold = 0.05;
44 % ssp.weightmode = 'uniform';
45 % ssp.stabilitytype = 'kun';
46 % ssp.title = 'Stability threshold';
47 % out{end+1} = ssp;
function iif(in cond, in x1, in x2)
function def_subsetsprocessors()
Processor of a set of subsets of features.