Pcaengine: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
(Importing text file)
Line 10: Line 10:
To enhance speed, the routine is written so that only the specified outputs are computed.
To enhance speed, the routine is written so that only the specified outputs are computed.
===Options===
===Options===
* ''options'' =  a structure array with the following fields:
* '''''options''''' =  a structure array with the following fields:
* display: [ 'off' | {'on'} ], governs level of display to command window,
* '''display''': [ 'off' | {'on'} ], governs level of display to command window,
* algorithm: [ {'regular'} | 'big' | 'auto'], tells which algorithm to use,
* '''algorithm''': [ {'regular'} | 'big' | 'auto'], tells which algorithm to use,
*  'regular', uses an SVD and calculates all eigenvectors and eigenvalues,
''''regular',''' uses an SVD and calculates all eigenvectors and eigenvalues,
*  'big', calculates the "economy size" SVD, and
''''big',''' calculates the "economy size" SVD, and
*  'auto', checks the size of the data matrix and automatically chooses between 'regular' and 'big'
''''auto',''' checks the size of the data matrix and automatically chooses between 'regular' and 'big'
The default options can be retreived using: options = pcaengine('options');.
The default options can be retreived using: options = pcaengine('options');.
===See Also===
===See Also===
[[analysis]], [[evolvfa]], [[ewfa]], [[explode]], [[parafac]], [[pca]], [[ssqtable]]
[[analysis]], [[evolvfa]], [[ewfa]], [[explode]], [[parafac]], [[pca]], [[ssqtable]]

Revision as of 19:57, 2 September 2008

Purpose

Principal components analysis computational engine.

Synopsis

[ssq,datarank,loads,scores,msg] = pcaengine(data,ncomp,options)
options = pcaengine('options')

Description

This function is intended primarily for use as the engine behind other more full featured PCA programs. The only required input is the data matrix data. Optional inputs include the number of principal components desired in the output ncomp, and a structure containing optional inputs options. If the number of components ncomp is not specified, the routine will return components up to the rank of the data datarank. The outputs are the variance or sum-of-squares captured table ssq, mathematical rank of the data datarank, principal component loadings loads, principal component scores scores, and a text variable containing any warning messages msg. To enhance speed, the routine is written so that only the specified outputs are computed.

Options

  • options = a structure array with the following fields:
  • display: [ 'off' | {'on'} ], governs level of display to command window,
  • algorithm: [ {'regular'} | 'big' | 'auto'], tells which algorithm to use,
  • 'regular', uses an SVD and calculates all eigenvectors and eigenvalues,
  • 'big', calculates the "economy size" SVD, and
  • 'auto', checks the size of the data matrix and automatically chooses between 'regular' and 'big'

The default options can be retreived using: options = pcaengine('options');.

See Also

analysis, evolvfa, ewfa, explode, parafac, pca, ssqtable