prtPreProcZeroMeanColumns Zero mean feature (columns)
ZMC = prtPreProcZeroMeanColumns creates an object that removes the
mean from each column (feature) of a data set.
prtPreProcZeroMeanColumns has no user settable properties.
A prtPreProcZeroMeanColumns object also inherits all properties and
functions from the prtAction class.
Example:
dataSet = prtDataGenIris; % Load a data set and
dataSet = dataSet.retainFeatures(1:2);% Retain the first 2 features
zmc = prtPreProcZeroMeanColumns; % Create a
% prtPreProcZeroMeanColumns object
zmc = zmc.train(dataSet); % Train
dataSetNew = zmc.run(dataSet); % Run
% Plot
subplot(2,1,1); plot(dataSet);
title(sprintf('Mean: %s',mat2str(mean(dataSet.getObservations),2)))
subplot(2,1,2); plot(dataSetNew);
title(sprintf('Mean: %s',mat2str(mean(dataSetNew.getObservations),2)))