public class Eigens
extends java.lang.Object
Constructor and Description |
---|
Eigens(Jama.Matrix matrix)
Create an object holding the eigenvectors and eigenvalues of the
supplied matrix.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Eigens(Jama.Matrix matrix)
matrix
- the matrix on which to perform eigen analysispublic static Eigens fromVectors(java.util.Collection<Vec3> vectors, boolean normalize)
vectors
- a collection of three-dimensional vectorsnormalize
- true
to normalize the vectors before analysispublic java.util.List<Vec3> getVectors()
public java.util.List<java.lang.Double> getValues()
public double getMad1()
public double getMad3()