public class PCAResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private EigenPair[] |
eigenPairs
The eigenpairs in decreasing order.
|
private double[] |
eigenvalues
The eigenvalues in decreasing order.
|
private double[][] |
eigenvectors
The eigenvectors in decreasing order to their corresponding eigenvalues.
|
Constructor and Description |
---|
PCAResult(EigenPair[] eigenPairs)
Build a PCA result from an existing set of EigenPairs.
|
PCAResult(EigenvalueDecomposition evd)
Constructor from an eigenvalue decomposition.
|
Modifier and Type | Method and Description |
---|---|
EigenPair[] |
getEigenPairs()
Returns the eigenpairs of the object to which this PCA belongs to
in decreasing order.
|
double[] |
getEigenvalues()
Returns the local PCA eigenvalues in decreasing order.
|
double[][] |
getEigenvectors()
Returns the local PCA eigenvectors, in rows.
|
private static EigenPair[] |
processDecomposition(EigenvalueDecomposition evd)
Convert an eigenvalue decomposition into EigenPair objects.
|
private EigenPair[] eigenPairs
private double[] eigenvalues
private double[][] eigenvectors
public PCAResult(EigenPair[] eigenPairs)
eigenPairs
- existing eigenpairspublic PCAResult(EigenvalueDecomposition evd)
evd
- Eigenvalue decompositionprivate static EigenPair[] processDecomposition(EigenvalueDecomposition evd)
evd
- Eigenvalue decompositionpublic final double[][] getEigenvectors()
public final double[] getEigenvalues()
public final EigenPair[] getEigenPairs()
Copyright © 2019 ELKI Development Team. License information.