Package pl.poznan.put.circular.samples
Class TrigonometricMoment
java.lang.Object
pl.poznan.put.circular.samples.TrigonometricMoment
- Direct Known Subclasses:
ImmutableTrigonometricMoment
A quantitative measure of a trigonometric sample shape.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrigonometricMomentcomputeCentered(Collection<Angle> data, int p, Angle theta) Computes a centered moment i.e. relative to the mean value in the sample.static TrigonometricMomentcomputeUncentered(Collection<Angle> data, int p) Computes an uncentered moment i.e. from the data points not relative to any specific point.abstract Angleabstract double
-
Constructor Details
-
TrigonometricMoment
public TrigonometricMoment()
-
-
Method Details
-
computeUncentered
Computes an uncentered moment i.e. from the data points not relative to any specific point.- Parameters:
data- A collection of angular values.p- A p-th moment to be calculated.- Returns:
- The p-th uncentered trigonometric moment of the sample.
-
computeCentered
Computes a centered moment i.e. relative to the mean value in the sample.- Parameters:
data- A collection of angular values.p- A p-th moment to be calculated.theta- The mean value in the sample- Returns:
- The p-th centered trigonometric moment of the sample.
-
meanDirection
- Returns:
- The mean direction.
-
meanResultantLength
@Parameter(order=2) public abstract double meanResultantLength()- Returns:
- The length of the vector representing the mean direction.
-