Package pl.poznan.put.circular.samples
Class AngleSample
java.lang.Object
pl.poznan.put.circular.samples.AngleSample
- Direct Known Subclasses:
ImmutableAngleSample
A sample of angular values and computed statistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
check()
double
double
circularRank
(Angle datapoint) Computes the rank (index) of the value in the current sample assuming that 0 is the beginning of the circle.double
double
protected TrigonometricMoment
cm2()
abstract Collection<Angle>
data()
double
kurtosis()
double
double
double
skewness()
toString()
protected TrigonometricMoment
um1()
protected TrigonometricMoment
um2()
-
Constructor Details
-
AngleSample
public AngleSample()
-
-
Method Details
-
data
- Returns:
- The collection of values in the sample.
-
meanDirection
- Returns:
- A mean angular value of the sample.
-
meanResultantLength
@Lazy public double meanResultantLength()- Returns:
- The length of the mean direction vector in range [0; 1]. The closer it is to 1, the less diverse are the data in the sample.
-
circularVariance
@Lazy public double circularVariance()- Returns:
- A measure of variance of the data on the circle, taking values in range [0; 1].
-
circularStandardDeviation
@Lazy public double circularStandardDeviation()- Returns:
- A measure of variance of the data on the circle, taking values in range [0; ∞].
-
circularDispersion
@Lazy public double circularDispersion()- Returns:
- Another measure of variance of the data depending on the first and second central trigonometric moment.
-
skewness
@Lazy public double skewness()- Returns:
- Another measure of variance of the data.
-
kurtosis
@Lazy public double kurtosis()- Returns:
- Another measure of variance of the data.
-
medianDirection
- Returns:
- The median direction i.e. angular value to which all others have the minimum mean distance.
-
meanDeviation
@Lazy public double meanDeviation()- Returns:
- The mean of distances of the observations from the samples' median.
-
circularRank
Computes the rank (index) of the value in the current sample assuming that 0 is the beginning of the circle.- Parameters:
datapoint
- Value, must be one of those used to create this instance of AngleSample.- Returns:
- The rank (index) of the value in the sample, when treating 0 as the beginning of the circle.
-
toString
-
check
@Check protected void check() -
medianAndMeanDeviation
-
sortedData
-
um1
-
cm2
-
um2
-