1 %> @brief Feature subset grader - t-test
5 %> =1. If 1, result of test is -log10(p-value);
if 0, result is p-value
9 methods(Access=
protected)
10 function z = test(o, dd, idxs)
11 z = zeros(1, numel(idxs));
13 X = dd(1).X(:, idxs{i});
14 [dummy, z(i)] = ttest2(X(dd(1).classes == 0), X(dd(1).classes == 1), 0.05); % actually the third parameter (alpha) is irrelevant because we want the p-value only
24 o.classtitle = 'T-Test';
26 o.flag_univariate = 1;
Feature subset grader - t-test.
Feature subset grader that uses a statistical test.