Class TrigonometricMoment

  • Direct Known Subclasses:
    ImmutableTrigonometricMoment

    @Immutable
    public abstract class TrigonometricMoment
    extends Object
    A quantitative measure of a trigonometric sample shape.
    • Constructor Detail

      • TrigonometricMoment

        public TrigonometricMoment()
    • Method Detail

      • computeUncentered

        public static TrigonometricMoment computeUncentered​(Collection<Angle> data,
                                                            int p)
        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

        public static TrigonometricMoment computeCentered​(Collection<Angle> data,
                                                          int p,
                                                          Angle theta)
        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

        @Parameter(order=1)
        public abstract Angle meanDirection()
        Returns:
        The mean direction.
      • meanResultantLength

        @Parameter(order=2)
        public abstract double meanResultantLength()
        Returns:
        The length of the vector representing the mean direction.