Package edu.cmu.tetrad.search.test
Record Class Kci.EigenReturn
java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.test.Kci.EigenReturn
- Record Components:
D
- A SimpleMatrix containing the eigenvalues in its diagonal. The order of the eigenvalues corresponds to the columns of the matrix V.V
- A SimpleMatrix where each column is an eigenvector of the original matrix. The columns are ordered to match the eigenvalues in D.topEigenvalues
- A list of doubles representing the top eigenvalues. This might be a subset of the eigenvalues in D, typically those with the largest magnitude or the most significance for a particular application.
- Enclosing class:
Kci
public static record Kci.EigenReturn(org.ejml.simple.SimpleMatrix D, org.ejml.simple.SimpleMatrix V, List<Double> topEigenvalues)
extends Record
A record representing the result of an eigenvalue decomposition.
The EigenReturn record encapsulates the diagonal matrix of eigenvalues (D), the matrix of eigenvectors (V), and a list containing the top eigenvalues.
-
Constructor Summary
ConstructorsConstructorDescriptionEigenReturn
(org.ejml.simple.SimpleMatrix D, org.ejml.simple.SimpleMatrix V, List<Double> topEigenvalues) Creates an instance of aEigenReturn
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.ejml.simple.SimpleMatrix
D()
Returns the value of theD
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetopEigenvalues
record component.final String
toString()
Returns a string representation of this record class.org.ejml.simple.SimpleMatrix
V()
Returns the value of theV
record component.
-
Constructor Details
-
EigenReturn
public EigenReturn(org.ejml.simple.SimpleMatrix D, org.ejml.simple.SimpleMatrix V, List<Double> topEigenvalues) Creates an instance of aEigenReturn
record class.- Parameters:
D
- the value for theD
record componentV
- the value for theV
record componenttopEigenvalues
- the value for thetopEigenvalues
record component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
D
-
V
-
topEigenvalues
Returns the value of thetopEigenvalues
record component.- Returns:
- the value of the
topEigenvalues
record component
-