MATLAB File Help: prtPreProcZeroMeanColumns
prtPreProcZeroMeanColumns
  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)))
See Also
Class Details
Superclasses prtPreProc
Sealed false
Construct on load false
Constructor Summary
prtPreProcZeroMeanColumns Zero mean feature (columns) 
Property Summary
dataSet The training prtDataSet, only stored if verboseStorage is true.  
dataSetSummary Structure that summarizes prtDataSet. 
isCrossValidateValid True 
isSupervised False 
isTrained Indicates if prtAction object has been trained. 
meanVector General Classifier Properties 
name Zero-Mean Columns 
nameAbbreviation ZMC 
showProgressBar  
userData User specified data 
verboseStorage Specifies whether or not to store the training prtDataset. 
Method Summary
  crossValidate Cross validate prtAction using prtDataSet and cross validation keys. 
  get get the object properties 
  kfolds Perform K-folds cross-validation of prtAction 
  optimize Optimize action parameter by exhaustive function maximization. 
  run Run a prtAction object on a prtDataSet object. 
  set set the object properties 
  train Train a prtAction object using training a prtDataSet object.