|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.pca.EigenValue
public class EigenValue
This class describes an eigenvalue, eigenvector pair, comparable by absolute of eigenvalue.
Constructor Summary | |
---|---|
EigenValue(int position,
double value,
Jama.Matrix vector)
Create pair. |
Method Summary | |
---|---|
int |
compareTo(EigenValue o)
|
static double[] |
extractEVVector(Jama.EigenvalueDecomposition eig)
extract the vector of eigenvalues. |
int |
getPosition()
|
static Jama.Matrix |
getSortedEigenVectors(double[][] eigenVectors,
double[] eigenvalues,
int number)
Constructs a matrix consisting of the first number
eigenvectors of m , where first refers to the corresponding
eigenvalues sorted by absolute value.Take care that the matrix is symmetric! |
Double |
getValue()
|
Jama.Matrix |
getVector()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
EigenValue(int position, double value, Jama.Matrix vector)
position
- original position in eigenvalue matrixvalue
- eigenvaluevector
- eigenvectorMethod Detail |
---|
public int getPosition()
public int compareTo(EigenValue o)
compareTo
in interface Comparable<EigenValue>
public Double getValue()
public Jama.Matrix getVector()
public String toString()
toString
in class Object
public static double[] extractEVVector(Jama.EigenvalueDecomposition eig)
eig
- eigenvalue decomposition
public static Jama.Matrix getSortedEigenVectors(double[][] eigenVectors, double[] eigenvalues, int number)
number
eigenvectors of m
, where first refers to the corresponding
eigenvalues sorted by absolute value.
eigenVectors
- list of eigenvectorseigenvalues
- list of eigenvaluesnumber
- number of eigenvectors in return matrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |