public class EigenPair extends java.lang.Object implements java.lang.Comparable<EigenPair>
| Modifier and Type | Field and Description |
|---|---|
private double |
eigenvalue
The corresponding eigenvalue.
|
private double[] |
eigenvector
The eigenvector as a matrix.
|
| Constructor and Description |
|---|
EigenPair(double[] eigenvector,
double eigenvalue)
Creates a new EigenPair object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EigenPair o)
Compares this object with the specified object for order.
|
double |
getEigenvalue()
Returns the eigenvalue.
|
double[] |
getEigenvector()
Returns the eigenvector.
|
java.lang.String |
toString()
Returns a string representation of this EigenPair.
|
private double[] eigenvector
private double eigenvalue
public EigenPair(double[] eigenvector,
double eigenvalue)
eigenvector - the eigenvector as a matrixeigenvalue - the corresponding eigenvaluepublic int compareTo(EigenPair o)
compareTo in interface java.lang.Comparable<EigenPair>o - the Eigenvector to be compared.public double[] getEigenvector()
public double getEigenvalue()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.