public class PcaValues
extends java.lang.Object
PcaAnnotated
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getNpoints()
Returns the number of points used in this PCA.
|
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.
|
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 originpublic double getMad1()
public double getMad3()
public Vec3 getOrigin()
public Vec3 getDirection()
public boolean isAnchored()
true
is the PCA calculation was anchoredpublic int getNpoints()
public static java.util.List<java.lang.String> getHeaders()
public java.lang.String getEquation()
public java.util.List<java.lang.String> toStrings()
getHeaders()
.