Module datarush.analytics
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 long
count
protected T
sum
protected T
sumSquares
-
Constructor Summary
Constructors Constructor Description IntervalCounts(long count, T sum, T sumSquares)
Creates counts for a given interval
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
getCount()
Returns the number of values within an intervalT
getSum()
Returns the sum of values within an intervalT
getSumSquares()
Returns the sum of the squares of the values within an intervalint
hashCode()
String
toString()
-
-
-
Field Detail
-
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
-
-
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
-
-