epfl.pdf
Class PCA

java.lang.Object
  |
  +--epfl.pdf.PCA
All Implemented Interfaces:
java.lang.Runnable

public class PCA
extends java.lang.Object
implements java.lang.Runnable

Computes a principal component analysis on a set of vectors.


Constructor Summary
PCA(VectorReader data)
          Creates a new PCA process without running it
 
Method Summary
 double[] getEigenvalues()
          Returns the eigen values or null if the process wasn't run
 double[][] getEigenvectors()
          Returns the eigen vectors or null if the process wasn't run
 void run()
          Runs the PCA
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCA

public PCA(VectorReader data)
Creates a new PCA process without running it
Parameters:
data - the data for the pca
Method Detail

run

public void run()
Runs the PCA
Specified by:
run in interface java.lang.Runnable

getEigenvalues

public double[] getEigenvalues()
Returns the eigen values or null if the process wasn't run

getEigenvectors

public double[][] getEigenvectors()
Returns the eigen vectors or null if the process wasn't run