public class FisherValues extends java.lang.Object implements FisherParams
Modifier and Type | Method and Description |
---|---|
static FisherValues |
calculate(java.util.Collection<Vec3> vectors)
Returns a set of Fisherian statistics, calculated using the
Fisher (1953) method, for a collection of vectors.
|
double |
getA95()
Returns the alpha-95 value denoting the 95% confidence interval.
|
java.util.List<Vec3> |
getDirections()
Returns a list of unit vectors representing the directions of the vectors
on which these statistics were calculated.
|
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
κ.
|
Vec3 |
getMeanDirection()
Returns the mean direction.
|
int |
getN()
Returns N, the number of directions analysed.
|
double |
getR()
Returns R, the total unit vector path length.
|
java.lang.String |
toString()
Returns a string representation of the parameters.
|
java.util.List<java.lang.String> |
toStrings()
Returns the statistical parameters as a list of strings.
|
static java.util.List<java.lang.String> |
toStrings(FisherValues fisherValues)
Returns the statistical parameters as a list of strings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isA95Valid
public static FisherValues calculate(java.util.Collection<Vec3> vectors)
The a95 value is not guaranteed to represent a real number: some sets of directions may produce an undefined (NaN or infinite) a95. This is a consequence of the definition, rather than of the implementation here; see equation 6.21 in Butler (1992) and note that R may be arbitrarily small, putting the RHS out of the domain of the cosine function. (Theoretically R may even be zero, but this is extremely unlikely for any real data set.)
vectors
- the points on which to calculate statisticspublic double getA95()
FisherParams
getA95
in interface FisherParams
public double getK()
FisherParams
getK
in interface FisherParams
public int getN()
FisherParams
getN
in interface FisherParams
public double getR()
FisherParams
getR
in interface FisherParams
public Vec3 getMeanDirection()
FisherParams
getMeanDirection
in interface FisherParams
public java.util.List<Vec3> getDirections()
public java.util.List<java.lang.String> toStrings()
getHeaders()
.toStrings(net.talvi.puffinplot.data.FisherValues)
public static java.util.List<java.lang.String> toStrings(FisherValues fisherValues)
getHeaders()
. It returns the same result as the corresponding
instance method for any non-null input, but (unlike the instance method)
also works for a null
FisherValues
.fisherValues
- the Fisher parameters to return as stringsfisherValues
was null
toStrings()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.List<java.lang.String> getHeaders()
public static java.util.List<java.lang.String> getEmptyFields()