|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.talvi.puffinplot.data.Eigens
public class Eigens
A class to calculate and store the eigenvalues and eigenvectors of a matrix. It can also construct an orientation matrix from a supplied collection of vectors and perform eigen analysis on that matrix.
Constructor Summary | |
---|---|
Eigens(Matrix matrix)
Create an object holding the eigenvectors and eigenvalues of the supplied matrix. |
Method Summary | |
---|---|
static Eigens |
fromVectors(java.util.Collection<Vec3> vectors,
boolean normalize)
Create an orientation tensor from the supplied vectors, then return the results of eigen analysis upon the constructed matrix. |
double |
getMad1()
|
double |
getMad3()
|
java.util.List<java.lang.Double> |
getValues()
Returns the eigenvalues in decreasing order. |
java.util.List<Vec3> |
getVectors()
Returns the eigenvectors in order of decreasing eigenvalue. |
Matrix |
toMatrix()
Returns a matrix of the eigenvectors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Eigens(Matrix matrix)
matrix
- the matrix on which to perform eigen analysisMethod Detail |
---|
public static Eigens fromVectors(java.util.Collection<Vec3> vectors, boolean normalize)
vectors
- a collection of three-dimensional vectorsnormalize
- true
to normalize the vectors before analysis
public Matrix toMatrix()
public java.util.List<Vec3> getVectors()
public java.util.List<java.lang.Double> getValues()
public double getMad1()
public double getMad3()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |