Neural Network Toolbox™ Previous page   Next Page 
processpca
 Provide feedback about this page

Process columns of matrix with principal component analysis

Syntax

Description

processpca processes matrices using principal component analysis so that each row is uncorrelated, the rows are in the order of the amount they contribute to total variation, and rows whose contribution to total variation are less than maxfrac are removed.

processpca(X,maxfrac) takes X and an optional parameter,

X
N x Q matrix or a 1 x TS row cell array of N x Q matrices
maxfrac
Maximum fraction of variance for removed rows (default is 0)

and returns

Y
Each N x Q matrix with N - M rows deleted (optional)
PS
Process settings that allow consistent processing of values

processpca(X,FP) takes parameters as a struct: FP.maxfrac.

processpca('apply',X,PS) returns Y, given X and settings PS.

processpca('reverse',Y,PS) returns X, given Y and settings PS.

processpca('dx',X,Y,PS) returns the M x N x Q derivative of Y with respect to X.

processpca('dx',X,[],PS) returns the derivative, less efficiently.

processpca('name') returns the name of this process method.

processpca('pdefaults') returns default process parameter structure.

processpca('pdesc') returns the process parameter descriptions.

processpca('pcheck',fp) throws an error if any parameter is illegal.

Examples

Here is how to format a matrix with an independent row, a correlated row, and a completely redundant row so that its rows are uncorrelated and the redundant row is dropped.

Next, apply the same processing settings to new values.

Reverse the processing of y1 to get x1 again.

Algorithm

Values in rows whose elements are not all the same value are set to

Values in rows with all the same value are set to 0.

See Also

fixunknowns, mapminmax, mapstd


 Provide feedback about this page 

Previous page postreg purelin Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS