|
||||||||||
| 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,
Matrix vector)
Create pair. |
|
| Method Summary | |
|---|---|
int |
compareTo(EigenValue o)
|
static List<EigenValue> |
createSortedList(double[][] eigenVectors,
double[] eigenvalues)
create list of EigenValues sorted by absolute value |
static double[] |
extractEVVector(EigenvalueDecomposition eig)
extract the vector of eigenvalues. |
int |
getPosition()
|
static 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()
|
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,
Matrix vector)
position - original position in eigenvalue matrixvalue - eigenvaluevector - eigenvector| Method Detail |
|---|
public int getPosition()
public int compareTo(EigenValue o)
compareTo in interface Comparable<EigenValue>public Double getValue()
public Matrix getVector()
public String toString()
toString in class Objectpublic static double[] extractEVVector(EigenvalueDecomposition eig)
eig - eigenvalue decomposition
public static 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
public static List<EigenValue> createSortedList(double[][] eigenVectors,
double[] eigenvalues)
EigenValues sorted by absolute value
eigenVectors - matrix of eigenvector (in columns)eigenvalues - eigenvalues, same order as columns of eigenVectors
EigenValues
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||