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 longcountprotected Tsumprotected TsumSquares
-
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 booleanequals(Object o)longgetCount()Returns the number of values within an intervalTgetSum()Returns the sum of values within an intervalTgetSumSquares()Returns the sum of the squares of the values within an intervalinthashCode()StringtoString()
-
-
-
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
-
-