|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.math.linearalgebra.EigenPair
public class EigenPair
Helper class which encapsulates an eigenvector and its corresponding eigenvalue. This class is used to sort eigenpairs.
Field Summary | |
---|---|
private double |
eigenvalue
The corresponding eigenvalue. |
private Vector |
eigenvector
The eigenvector as a matrix. |
Constructor Summary | |
---|---|
EigenPair(Vector eigenvector,
double eigenvalue)
Creates a new EigenPair object. |
Method Summary | |
---|---|
int |
compareTo(EigenPair o)
Compares this object with the specified object for order. |
double |
getEigenvalue()
Returns the eigenvalue. |
Vector |
getEigenvector()
Returns the eigenvector. |
String |
toString()
Returns a string representation of this EigenPair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Vector eigenvector
private double eigenvalue
Constructor Detail |
---|
public EigenPair(Vector eigenvector, double eigenvalue)
eigenvector
- the eigenvector as a matrixeigenvalue
- the corresponding eigenvalueMethod Detail |
---|
public int compareTo(EigenPair o)
compareTo
in interface Comparable<EigenPair>
o
- the Eigenvector to be compared.
public Vector getEigenvector()
public double getEigenvalue()
public String toString()
toString
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |