Click or drag to resize

PCA Class

Class which perform Principal Component Analysis (PCA). http://en.wikipedia.org/wiki/Principal_component_analysis
Inheritance Hierarchy
SystemObject
  FinMath.FactorAnalysisFactorTransformation
    FinMath.FactorAnalysisAffineTransformation
      FinMath.FactorAnalysisPCA

Namespace:  FinMath.FactorAnalysis
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public class PCA : AffineTransformation

The PCA type exposes the following members.

Constructors
  NameDescription
Public methodPCA(Matrix)
Perform Principal Component Analysis Algorithm and produce all vectors.
Public methodPCA(Matrix, Int32)
Perform Principal Component Analysis Algorithm and produce first PrincipalComponentsCount vectors.
Top
Properties
  NameDescription
Public propertyAllEigenvectors
(V) Matrix consisting of the set of all eigenvectors of covariance matrix, one eigenvector per column.
Public propertyCumulativeEnergy
(g) Vector of cumulative energy content for each eigenvector.
Public propertyEigenvalues
(d) Vector consisting of the set of all eigenvalues of CovarianceMatrix.
Public propertyInverseTransformation
(inverseW) PseudoInverse of Matrix of basis vectors, one vector per column, where each basis vector is one of the eigenvectors of CovarianceMatrix, and where the vectors in TransformationMatrix are a sub-set of those in AllEigenVectors.
Public propertyMeans
(u) Vector of empirical means, one mean for each column of the data matrix.
Public propertyNeedCenteringNewData
Specify this flag if you need new observations to be centered before transform in Transform \ InverseTransform
Public propertyOriginalVariablesCount
Variables count in source dataset.
(Inherited from FactorTransformation.)
Public propertyStatus
Method Status.
(Inherited from FactorTransformation.)
Public propertyTransformationMatrix
(W) Matrix of basis vectors, one vector per column, where each basis vector is one of the eigenvectors of CovarianceMatrix, and where the vectors in TransformationMatrix are a sub-set of those in AllEigenVectors.
Public propertyTransformedVariablesCount
Transformed components count.
(Overrides FactorTransformationTransformedVariablesCount.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverseTransform(Matrix)
Apply computed inverse transformation to transformed component samples.
(Inherited from FactorTransformation.)
Public methodInverseTransform(Vector)
Apply computed inverse transformation to transformed component sample.
(Inherited from FactorTransformation.)
Public methodInverseTransform(Matrix, Matrix)
Apply computed inverse transformation to transformed component samples.
(Inherited from AffineTransformation.)
Public methodInverseTransform(Vector, Vector)
Apply computed inverse transformation to transformed component sample.
(Inherited from AffineTransformation.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform(Matrix)
Apply computed transformation to new observations.
(Inherited from FactorTransformation.)
Public methodTransform(Vector)
Apply computed transformation to new observation.
(Inherited from FactorTransformation.)
Public methodTransform(Matrix, Matrix)
Apply computed transformation to new observations.
(Inherited from AffineTransformation.)
Public methodTransform(Vector, Vector)
Apply computed transformation to new observation.
(Inherited from AffineTransformation.)
Top
See Also