Module datarush.analytics
Class AbstractContinuousStatistics<T extends Number & Comparable<? super T>>
java.lang.Object
com.pervasive.datarush.analytics.stats.AbstractContinuousStatistics<T>
- Direct Known Subclasses:
BigContinuousStatistics,ContinuousStatistics
public abstract class AbstractContinuousStatistics<T extends Number & Comparable<? super T>>
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAbstractContinuousStatistics.IntervalCounts<T extends Number & Comparable<? super T>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a mapping from interval to the counts for the given interval.Class<?>Returns the sum of the squares of the values of the field.Returns the sum of the values of the field.voidSets a mapping from interval to the counts for the given interval.voidsetTotalSquaresSum(T totalSquaresSum) Sets the sum of the squares of the values of the field.voidsetTotalValuesSum(T totalValuesSum) Sets the sum of the values of the field
-
Field Details
-
ATTR_TOTAL_VALUES_SUM
- See Also:
-
ATTR_TOTAL_SQUARES_SUM
- See Also:
-
intervalCounts
protected SortedMap<Interval<T extends Number & Comparable<? super T>>,AbstractContinuousStatistics.IntervalCounts<T extends Number & Comparable<? super T>>> intervalCounts -
totalValuesSum
-
totalSquaresSum
-
-
Constructor Details
-
AbstractContinuousStatistics
public AbstractContinuousStatistics()
-
-
Method Details
-
getIntervalCounts
Returns a mapping from interval to the counts for the given interval.- Returns:
- a mapping from interval to the counts for the given interval.
-
setIntervalCounts
public void setIntervalCounts(Map<Interval<T>, AbstractContinuousStatistics.IntervalCounts<T>> intMap) Sets a mapping from interval to the counts for the given interval.- Parameters:
intMap- a mapping from interval to the counts for the given interval.
-
getTotalValuesSum
Returns the sum of the values of the field.- Returns:
- the sum of the values of the field.
-
setTotalValuesSum
Sets the sum of the values of the field- Parameters:
totalValuesSum- the sum of the values of the field.
-
getTotalSquaresSum
Returns the sum of the squares of the values of the field.- Returns:
- the sum of the squares of the values of the field.
-
setTotalSquaresSum
Sets the sum of the squares of the values of the field.- Parameters:
totalSquaresSum- the sum of the squares of the values of the field.
-
getNumericType
-