|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.talvi.puffinplot.data.PcaValues
public class PcaValues
This class performs three-dimension principal component analysis on a supplied collection of vectors and stores the results.
PcaAnnotated
Method Summary | |
---|---|
static PcaValues |
calculate(java.util.List<Vec3> points,
boolean anchored)
Performs principal component analysis (PCA) on the supplied vectors and returns an object containing the results of the analysis. |
Vec3 |
getDirection()
Returns the direction of the principal PCA axis. |
java.lang.String |
getEquation()
Return a Cartesian equation describing the PCA line. |
static java.util.List<java.lang.String> |
getHeaders()
Returns the headers describing the parameters as a list of strings. |
double |
getMad1()
Returns the maximum angle of planar deviation. |
double |
getMad3()
Returns the maximum angle of linear deviation. |
Vec3 |
getOrigin()
Returns the origin for the PCA fit. |
boolean |
isAnchored()
Reports whether the PCA calculation was anchored. |
java.util.List<java.lang.String> |
toStrings()
Returns the parameters as a list of strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PcaValues calculate(java.util.List<Vec3> points, boolean anchored)
points
- the points upon which to perform PCAanchored
- true
to anchor the PCA to the origin
public double getMad1()
public double getMad3()
public Vec3 getOrigin()
public Vec3 getDirection()
public boolean isAnchored()
true
is the PCA calculation was anchoredpublic static java.util.List<java.lang.String> getHeaders()
public java.lang.String getEquation()
public java.util.List<java.lang.String> toStrings()
getHeaders()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |