public class PCA
extends Object
param: k number of principal components
Constructor and Description |
---|
PCA(int k) |
public PCAModel fit(RDD<Vector> sources)
PCAModel
that contains the principal components of the input vectors.
sources
- source vectorspublic PCAModel fit(JavaRDD<Vector> sources)
fit()
.sources
- (undocumented)public int k()