Performs principal components analysis on a set of images, features,
or vectors.
|
__init__(self,
center_points=True,
one_std=True)
Create a PCA object |
source code
|
|
|
|
|
addFeature(self,
feature)
Add a feature vector to the analysis. |
source code
|
|
|
|
|
train(self,
drop_front=None,
number=None,
energy=None)
Compute the PCA basis vectors using the SVD |
source code
|
|
|
project(self,
feature,
whiten=False)
Transform a feature into its low dimentional representation |
source code
|
|
|
reconstruct(self,
feat)
return the eigen values for this computation |
source code
|
|
|
getBasis(self)
return the eigen vectors returned by the computation |
source code
|
|
|
getValues(self)
return the bases used for transforming features |
source code
|
|