public class PCAModel extends Object implements VectorTransformer
PCA that can project vectors to a low-dimensional space using PCA.
 param: k number of principal components. param: pc a principal components Matrix. Each column is one principal component.
| Modifier and Type | Method and Description | 
|---|---|
| DenseVector | explainedVariance() | 
| int | k() | 
| DenseMatrix | pc() | 
| Vector | transform(Vector vector)Transform a vector by computed Principal Components. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransform, transformpublic DenseVector explainedVariance()
public int k()
public DenseMatrix pc()
public Vector transform(Vector vector)
transform in interface VectorTransformervector - vector to be transformed.
               Vector must be the same length as the source vectors given to PCA.fit().