Class AngleSample

  • Direct Known Subclasses:
    ImmutableAngleSample

    @Immutable
    public abstract class AngleSample
    extends Object
    A sample of angular values and computed statistics.
    • Constructor Detail

      • AngleSample

        public AngleSample()
    • 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()
      • sortedData

        @Lazy
        protected List<Angle> sortedData()