Package edu.cmu.tetrad.search.test
Class TopEigenvalues
java.lang.Object
edu.cmu.tetrad.search.test.TopEigenvalues
The class is used to find the top eigenvalues and eigenvectors of a given matrix. The top eigenvalues are those that
 are greater than a given threshold times the largest eigenvalue.
- Author:
- josephramsey
- 
Constructor SummaryConstructorsConstructorDescriptionTopEigenvalues(org.ejml.simple.SimpleMatrix k) Construct a new object with the given matrix.
- 
Method SummaryModifier and TypeMethodDescriptioninvoke(boolean storeV, double threshold) Performs eigendecomposition on a given matrix and optionally stores the top eigenvalues and (optionaly) eigenvectors.
- 
Constructor Details- 
TopEigenvaluespublic TopEigenvalues(org.ejml.simple.SimpleMatrix k) Construct a new object with the given matrix.- Parameters:
- k- the matrix to be decomposed
- Throws:
- IllegalArgumentException- if the matrix is empty
 
 
- 
- 
Method Details- 
invokePerforms eigendecomposition on a given matrix and optionally stores the top eigenvalues and (optionaly) eigenvectors.- Parameters:
- storeV- a flag indicating whether to store the eigenvectors]
- threshold- the threshold for the eigenvalues
- Returns:
- the Eigendecomposition object on which this method is invoked
 
 
-