IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
esag.m
Go to the documentation of this file.
1 %> @brief Estimation Aggregator - combines @ref estimato objects together.
2 classdef esag < rowaggr
3  properties
4  %> =0. Minimum maximum probability. If not reached, all probabilities of item will be flattened to zero.
5  threshold = 0;
6  end;
7 
8  methods
9  function o = esag(o)
10  o.classtitle = 'Estimation Aggregator';
11  o.flag_trainable = 0;
12  o.flag_params = 0;
13  end;
14  end;
15 
16  methods(Access=protected)
17  function dd = apply_threshold(o, dd)
18  if o.threshold > 0
19  for i = 1:numel(dd)
20  MM = max(dd(i).X, [], 2);
21  idxs = MM < o.threshold;
22  dd(i).X(idxs, :) = zeros(sum(idxs), dd(i).nf);
23  end;
24  end;
25  end;
26 
27 
28  %> Abstract
29  function out = do_use(o, dd)
30  end;
31  end;
32 end
Definition: rowaggr.m:6
Estimation Aggregator - combines estimato objects together.
Definition: esag.m:2
Dataset representing estimation.
Definition: estimato.m:4