1 %> @brief Subtracts the mean of a reference
class from all the rows
3 %> @sa uip_pre_sub_refmean.m
6 %> =1. Index of reference
class (1-based = first
class is class "1")
12 o.classtitle = 'Subtract mean of a reference class';
16 methods(Access=protected)
17 function data = do_use(o, data)
18 me = mean(data.X(data.classes == (o.idx_refclass-1), :));
20 data.X = data.X-repmat(me, data.no, 1);
Pre-processing block base class.
Subtracts the mean of a reference class from all the rows.