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 Classes Modifier and Type Class Description static class
AbstractContinuousStatistics.IntervalCounts<T extends Number & Comparable<? super T>>
-
Field Summary
Fields Modifier and Type Field Description protected static String
ATTR_TOTAL_SQUARES_SUM
protected static String
ATTR_TOTAL_VALUES_SUM
protected SortedMap<Interval<T>,AbstractContinuousStatistics.IntervalCounts<T>>
intervalCounts
protected T
totalSquaresSum
protected T
totalValuesSum
-
Constructor Summary
Constructors Constructor Description AbstractContinuousStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedMap<Interval<T>,AbstractContinuousStatistics.IntervalCounts<T>>
getIntervalCounts()
Returns a mapping from interval to the counts for the given interval.Class<?>
getNumericType()
T
getTotalSquaresSum()
Returns the sum of the squares of the values of the field.T
getTotalValuesSum()
Returns the sum of the values of the field.void
setIntervalCounts(Map<Interval<T>,AbstractContinuousStatistics.IntervalCounts<T>> intMap)
Sets a mapping from interval to the counts for the given interval.void
setTotalSquaresSum(T totalSquaresSum)
Sets the sum of the squares of the values of the field.void
setTotalValuesSum(T totalValuesSum)
Sets the sum of the values of the field
-
-
-
Field Detail
-
ATTR_TOTAL_VALUES_SUM
protected static final String ATTR_TOTAL_VALUES_SUM
- See Also:
- Constant Field Values
-
ATTR_TOTAL_SQUARES_SUM
protected static final String ATTR_TOTAL_SQUARES_SUM
- See Also:
- Constant Field Values
-
intervalCounts
protected SortedMap<Interval<T extends Number & Comparable<? super T>>,AbstractContinuousStatistics.IntervalCounts<T extends Number & Comparable<? super T>>> intervalCounts
-
totalValuesSum
protected T extends Number & Comparable<? super T> totalValuesSum
-
totalSquaresSum
protected T extends Number & Comparable<? super T> totalSquaresSum
-
-
Method Detail
-
getIntervalCounts
public SortedMap<Interval<T>,AbstractContinuousStatistics.IntervalCounts<T>> 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
public T getTotalValuesSum()
Returns the sum of the values of the field.- Returns:
- the sum of the values of the field.
-
setTotalValuesSum
public void setTotalValuesSum(T totalValuesSum)
Sets the sum of the values of the field- Parameters:
totalValuesSum
- the sum of the values of the field.
-
getTotalSquaresSum
public T 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
public void setTotalSquaresSum(T totalSquaresSum)
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
public Class<?> getNumericType()
-
-