Class AbstractContinuousStatistics.IntervalCounts<T extends Number & Comparable<? super T>>

    • Constructor Detail

      • IntervalCounts

        public IntervalCounts​(long count,
                              T sum,
                              T sumSquares)
        Creates counts for a given interval
        Parameters:
        count - the number of values within the interval
        sum - the sum of the values within the interval
        sumSquares - the sum of the squares of the values within the interval
    • Method Detail

      • getCount

        public long getCount()
        Returns the number of values within an interval
        Returns:
        the number of values within an interval
      • getSum

        public T getSum()
        Returns the sum of values within an interval
        Returns:
        the sum of values within an interval
      • getSumSquares

        public T getSumSquares()
        Returns the sum of the squares of the values within an interval
        Returns:
        the sum of the squares of the values within an interval
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object