public class FeatureVectorPCA extends PrincipalComponentAnalysis
FeatureVectors.PrincipalComponentAnalysis.ComponentSelector, PrincipalComponentAnalysis.EnergyThresholdComponentSelector, PrincipalComponentAnalysis.NumberComponentSelector, PrincipalComponentAnalysis.PercentageEnergyComponentSelectorbasis, eigenvalues, mean| Constructor and Description | 
|---|
FeatureVectorPCA()
Default constructor, using an  
SvdPrincipalComponentAnalysis. | 
FeatureVectorPCA(PrincipalComponentAnalysis inner)
Construct with the given  
PrincipalComponentAnalysis object. | 
| Modifier and Type | Method and Description | 
|---|---|
DoubleFV | 
generate(DoubleFV scalings)
Generate a new "observation" as a linear combination of the principal
 components (PC): mean + PC * scaling. 
 | 
void | 
learnBasis(Collection<? extends FeatureVector> data)
Learn the PCA basis of the given feature vectors. 
 | 
void | 
learnBasis(double[][] data)
Learn the principal components of the given data array. 
 | 
void | 
learnBasis(FeatureVector[] data)
Learn the PCA basis of the given feature vectors. 
 | 
protected void | 
learnBasisNorm(Jama.Matrix norm)
Learn the PCA basis from the centered data provided. 
 | 
DoubleFV | 
project(FeatureVector vector)
Project a vector by the basis. 
 | 
buildNormalisedDataMatrix, generate, getBasis, getCumulativeEnergies, getCumulativeEnergy, getEigenValue, getEigenValues, getEigenVectors, getMean, getPrincipalComponent, getStandardDeviations, getStandardDeviations, learnBasis, learnBasis, project, project, selectSubset, selectSubset, selectSubsetEnergyThreshold, selectSubsetPercentageEnergy, toStringpublic FeatureVectorPCA()
SvdPrincipalComponentAnalysis.public FeatureVectorPCA(PrincipalComponentAnalysis inner)
PrincipalComponentAnalysis object.inner - PCA algorithm.public void learnBasis(FeatureVector[] data)
data - the feature vectors to apply PCA to.public void learnBasis(Collection<? extends FeatureVector> data)
data - the feature vectors to apply PCA to.public DoubleFV project(FeatureVector vector)
vector - the vector to projectpublic void learnBasis(double[][] data)
PrincipalComponentAnalysislearnBasis in class PrincipalComponentAnalysisdata - the dataprotected void learnBasisNorm(Jama.Matrix norm)
PrincipalComponentAnalysislearnBasisNorm in class PrincipalComponentAnalysispublic DoubleFV generate(DoubleFV scalings)
scalings - the weighting for each PC