|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.util.PCA
public class PCA
This class implements the projection of a data set with a Principal Components Analysis.
Constructor Summary | |
---|---|
PCA(DataMatrix data,
int dim)
Creates a new Principal Components Analysis (PCA) and calculates it using the data matrix data as input. |
|
PCA(double[][] data,
int dim)
Creates a new Principal Components Analysis (PCA) and calculates it using the data matrix data as input. |
|
PCA(Jama.Matrix m,
int dim)
Creates a new Principal Components Analysis (PCA) and calculates it using the Jama Matrix m as input. |
Method Summary | |
---|---|
double[] |
getEigenvalues()
|
DataMatrix |
getEigenvaluesAsDataMatrix()
|
DataMatrix |
getEigenvectorsAsDataMatrix()
|
double[][] |
getEigenvectorsAsDoubleArray()
|
Jama.Matrix |
getEigenvectorsAsMatrix()
|
double[] |
getMeans()
|
DataMatrix |
getMeansAsDataMatrix()
|
DataMatrix |
getPCATransformedDataAsDataMatrix()
|
double[][] |
getPCATransformedDataAsDoubleArray()
|
Jama.Matrix |
getPCATransformedDataAsMatrix()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PCA(Jama.Matrix m, int dim)
m
as input. Furthermore, the projection of the input data to
a space of dimensionality dim
is performed.
m
- a Matrix representing the input datadim
- the number of dimensions onto which the input data is to be projectedpublic PCA(double[][] data, int dim)
data
as input. Furthermore, the projection of the input data to
a space of dimensionality dim
is performed.
data
- a double[][] representing the input datadim
- the number of dimensions onto which the input data is to be projectedpublic PCA(DataMatrix data, int dim)
data
as input. Furthermore, the projection of the input data to
a space of dimensionality dim
is performed.
data
- a DataMatrix representing the input datadim
- the number of dimensions onto which the input data is to be projectedMethod Detail |
---|
public double[][] getPCATransformedDataAsDoubleArray()
public Jama.Matrix getPCATransformedDataAsMatrix()
public DataMatrix getPCATransformedDataAsDataMatrix()
public double[][] getEigenvectorsAsDoubleArray()
public Jama.Matrix getEigenvectorsAsMatrix()
public DataMatrix getEigenvectorsAsDataMatrix()
public double[] getEigenvalues()
public DataMatrix getEigenvaluesAsDataMatrix()
public double[] getMeans()
public DataMatrix getMeansAsDataMatrix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |