Package pl.poznan.put.circular.samples
Class AngleSample
- java.lang.Object
-
- pl.poznan.put.circular.samples.AngleSample
-
- Direct Known Subclasses:
ImmutableAngleSample
@Immutable public abstract class AngleSample extends Object
A sample of angular values and computed statistics.
-
-
Constructor Summary
Constructors Constructor Description AngleSample()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheck()doublecircularDispersion()doublecircularRank(Angle datapoint)Computes the rank (index) of the value in the current sample assuming that 0 is the beginning of the circle.doublecircularStandardDeviation()doublecircularVariance()protected TrigonometricMomentcm2()abstract Collection<Angle>data()doublekurtosis()doublemeanDeviation()AnglemeanDirection()doublemeanResultantLength()protected org.apache.commons.lang3.tuple.Pair<Angle,Double>medianAndMeanDeviation()AnglemedianDirection()doubleskewness()protected List<Angle>sortedData()StringtoString()protected TrigonometricMomentum1()protected TrigonometricMomentum2()
-
-
-
Method Detail
-
data
@Parameter(order=1) public abstract Collection<Angle> data()
- Returns:
- The collection of values in the sample.
-
meanDirection
@Lazy public Angle 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
@Lazy public Angle 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
public double circularRank(Angle datapoint)
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.
-
check
@Check protected void check()
-
medianAndMeanDeviation
@Lazy protected org.apache.commons.lang3.tuple.Pair<Angle,Double> medianAndMeanDeviation()
-
um1
@Lazy protected TrigonometricMoment um1()
-
cm2
@Lazy protected TrigonometricMoment cm2()
-
um2
@Lazy protected TrigonometricMoment um2()
-
-