prtPreProcZeroMeanRows Zero mean observations (rows)
ZM = prtPreProcZeroMeanRows creates an object that removes the
mean from each row (observation) of a data set.
prtPreProcZeroMeanRows has no user settable properties.
A prtPreProcZeroMeanRows object also inherits all properties and
functions from the prtAction class.
Example:
dataSet = prtDataGenIris; % Load a data set
dataSet = dataSet.retainFeatures(1:3); % Use only the first 3 features
zmr = prtPreProcZeroMeanRows; % Create a
% prtPreProcZeroMeanRows object
zmr = zmr.train(dataSet); % Train
dataSetNew = zmr.run(dataSet); % Run
% Plot
subplot(2,1,1); plot(dataSet);
subplot(2,1,2); plot(dataSetNew);