public class PCAResult extends Object
Modifier and Type | Field and Description |
---|---|
private SortedEigenPairs |
eigenPairs
The eigenpairs in decreasing order.
|
private double[] |
eigenvalues
The eigenvalues in decreasing order.
|
private Matrix |
eigenvectors
The eigenvectors in decreasing order to their corresponding eigenvalues.
|
Constructor and Description |
---|
PCAResult(double[] eigenvalues,
Matrix eigenvectors,
SortedEigenPairs eigenPairs)
Build a PCA result object.
|
PCAResult(SortedEigenPairs eigenPairs)
Build a PCA result from an existing set of EigenPairs.
|
Modifier and Type | Method and Description |
---|---|
SortedEigenPairs |
getEigenPairs()
Returns a copy of the eigenpairs of the object to which this PCA belongs to
in decreasing order.
|
double[] |
getEigenvalues()
Returns a copy of the eigenvalues of the object to which this PCA belongs
to in decreasing order.
|
Matrix |
getEigenvectors()
Returns a copy of the matrix of eigenvectors of the object to which this
PCA belongs to.
|
int |
length()
Returns the number of eigenvectors stored
|
private SortedEigenPairs eigenPairs
private double[] eigenvalues
private Matrix eigenvectors
public PCAResult(double[] eigenvalues, Matrix eigenvectors, SortedEigenPairs eigenPairs)
eigenvalues
- Eigenvalueseigenvectors
- Eigenvector matrixeigenPairs
- Eigenpairspublic PCAResult(SortedEigenPairs eigenPairs)
eigenPairs
- existing eigenpairspublic final Matrix getEigenvectors()
public final double[] getEigenvalues()
public final SortedEigenPairs getEigenPairs()
public final int length()