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

java.lang.Object
com.pervasive.datarush.analytics.stats.AbstractContinuousStatistics.IntervalCounts<T>
Enclosing class:
AbstractContinuousStatistics<T extends Number & Comparable<? super T>>

public static final class AbstractContinuousStatistics.IntervalCounts<T extends Number & Comparable<? super T>> extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final long
     
    protected final T
     
    protected final T
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntervalCounts(long count, T sum, T sumSquares)
    Creates counts for a given interval
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    Returns the number of values within an interval
    Returns the sum of values within an interval
    Returns the sum of the squares of the values within an interval
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • count

      protected final long count
    • sum

      protected final T extends Number & Comparable<? super T> sum
    • sumSquares

      protected final T extends Number & Comparable<? super T> sumSquares
  • Constructor Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object