|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.talvi.puffinplot.data.GreatCircle
public final class GreatCircle
This class represents a list of unit vectors and a best-fit great-circle path through them. The constructor calculates the best-fit circle from a supplied set of vectors.
Constructor Summary | |
---|---|
GreatCircle(java.util.List<Vec3> vectors)
Constructs a best-fitting great circle for the supplied vectors. |
Method Summary | |
---|---|
double |
angleFromLast(Vec3 v)
Returns the angle between the supplied direction and the last point on the great-circle fit. |
static java.util.List<java.lang.String> |
getEmptyFields()
Returns a list of empty strings equal in length to the number of parameters. |
static java.util.List<java.lang.String> |
getHeaders()
Returns the headers describing the parameters as a list of strings. |
double |
getMad1()
Returns the MAD1 (planar maximum angular deviation) value for the great-circle fit. |
java.util.List<Vec3> |
getPoints()
Returns the normalized points to which the great circle was fitted. |
Vec3 |
getPole()
Returns a pole to the fitted great circle. |
Vec3 |
lastPoint()
Returns the normalized final point used in the great-circle fit. |
Vec3 |
nearestOnCircle(Vec3 point)
For a supplied direction, returns the nearest direction which lies on this great circle. |
java.util.List<java.lang.String> |
toStrings()
Returns the statistical parameters as a list of strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GreatCircle(java.util.List<Vec3> vectors)
vectors
- the direction vectors for which to fit the circleMethod Detail |
---|
public java.util.List<Vec3> getPoints()
public Vec3 getPole()
public Vec3 nearestOnCircle(Vec3 point)
point
- a vector specifying a direction
public Vec3 lastPoint()
public double angleFromLast(Vec3 v)
v
- a direction
public java.util.List<java.lang.String> toStrings()
getHeaders()
.
public static java.util.List<java.lang.String> getEmptyFields()
public static java.util.List<java.lang.String> getHeaders()
public double getMad1()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |