public final class GreatCircles extends java.lang.Object implements FisherParams
Constructor and Description |
---|
GreatCircles(java.util.List<Vec3> endpoints,
java.util.List<GreatCircle> circles)
Calculates a mean direction from the supplied great circle and
directions.
|
Modifier and Type | Method and Description |
---|---|
double |
getA95()
Returns the alpha-95 value denoting the 95% confidence interval.
|
java.util.List<GreatCircle> |
getCircles()
Returns the great circles which were originally supplied to the constructor.
|
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 |
getK()
Returns the k-value, an estimate of the precision
parameter κ.
|
int |
getM()
Returns the number of stable endpoints used in the calculation.
|
Vec3 |
getMeanDirection()
Returns the best-fit mean direction for the supplied circles and directions.
|
int |
getN()
Returns the number of great circles used in the calculation.
|
double |
getR()
Returns R, the total unit vector path length.
|
boolean |
isA95Valid()
Reports whether the alpha-95 value represents a real number.
|
boolean |
isValid()
Returns
true if this great-circle fit is valid. |
java.util.List<java.lang.String> |
toStrings()
Returns the statistical parameters as a list of strings.
|
public GreatCircles(java.util.List<Vec3> endpoints, java.util.List<GreatCircle> circles)
endpoints
- a set of directions (probably from linear PCA fits)circles
- a set of great circlespublic int getM()
public int getN()
getN
in interface FisherParams
public final java.util.List<GreatCircle> getCircles()
public Vec3 getMeanDirection()
getMeanDirection
in interface FisherParams
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 boolean isValid()
true
if this great-circle fit is valid.true
if this great-circle fit is validpublic double getA95()
FisherParams
getA95
in interface FisherParams
public boolean isA95Valid()
FisherParams
isA95Valid
in interface FisherParams
public double getK()
FisherParams
getK
in interface FisherParams
public double getR()
FisherParams
getR
in interface FisherParams