
public class EigenPair extends Object implements Comparable<EigenPair>
| Modifier and Type | Field and Description |
|---|---|
private double |
eigenvalue
The corresponding eigenvalue.
|
private Vector |
eigenvector
The eigenvector as a matrix.
|
| Constructor and Description |
|---|
EigenPair(Vector 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.
|
Vector |
getEigenvector()
Returns the eigenvector.
|
String |
toString()
Returns a string representation of this EigenPair.
|
private Vector eigenvector
private double eigenvalue
public EigenPair(Vector eigenvector, double eigenvalue)
eigenvector - the eigenvector as a matrixeigenvalue - the corresponding eigenvaluepublic int compareTo(EigenPair o)
compareTo in interface Comparable<EigenPair>o - the Eigenvector to be compared.public Vector getEigenvector()
public double getEigenvalue()