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 -
Constructor Summary
ConstructorsConstructorDescriptionIntervalCounts(long count, T sum, T sumSquares) Creates counts for a given interval -
Method Summary
-
Field Details
-
count
protected final long count -
sum
-
sumSquares
-
-
Constructor Details
-
IntervalCounts
Creates counts for a given interval- Parameters:
count- the number of values within the intervalsum- the sum of the values within the intervalsumSquares- 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
Returns the sum of values within an interval- Returns:
- the sum of values within an interval
-
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
-
hashCode
public int hashCode() -
toString
-