1 %> @brief Mean-centering (trained)
3 %> Descends from
pre_norm_base to organize in GUI but is unrelated to other pre_norm_*
5 properties(SetAccess=
protected)
11 o.classtitle = 'Trained Mean-centering';
18 methods(Access=protected)
21 % Trains the
block: records the variable means
22 function o = do_train(o, data)
23 o.means = mean(data.X, 1);
26 % Applies
block to dataset
27 function data = do_use(o, data)
29 data.X = X-repmat(o.means, size(X, 1), 1);
Normalization - base class.