IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
fsg_test_anova.m
Go to the documentation of this file.
1 %> @brief Feature subset grader - ANOVA
2 %>
4  properties
5  %> Whether to make result as -log10(p_value)
6  flag_logtake = 1;
7  end;
8 
9  methods(Access=protected)
10  function z = test(o, dd, idxs)
11  % actually the third parameter (alpha) is irrelevant because we want the p-value only
12  z = zeros(1, numel(idxs));
13  for i = 1:numel(idxs)
14  X = dd(1).X(:, idxs{i});
15  z(i) = anova1(X, dd(1).classes, 'off');
16  end;
17  if o.flag_logtake
18  z = -log10(z);
19  end;
20  end;
21  end;
22 
23  methods
24  function o = fsg_test_anova(o)
25  o.classtitle = 'ANOVA';
26  o.flag_pairwise = 0;
27  o.flag_univariate = 1;
28  o.flag_params = 1;
29  end;
30  end;
31 end
Feature subset grader that uses a statistical test.
Definition: fsg_test.m:2
Feature subset grader - ANOVA.
Definition: fsg_test_anova.m:3
Analysis Session (AS) base class.
Definition: as.m:6