Module datarush.analytics
Class AbstractNumericInfo<T extends Number & Comparable<? super T>>
- java.lang.Object
-
- com.pervasive.datarush.analytics.stats.AbstractNumericInfo<T>
-
- Direct Known Subclasses:
BigNumericInfo
,NumericInfo
public abstract class AbstractNumericInfo<T extends Number & Comparable<? super T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ATTR_IQR
protected static String
ATTR_MAX
protected static String
ATTR_MEAN
protected static String
ATTR_MEDIAN
protected static String
ATTR_MIN
protected static String
ATTR_STANDARD_DEVIATION
protected static String
ATTR_SUM
protected static String
ATTR_VARIANCE
protected static String
ELEM_NUMERIC_INFO
protected T
interQuartileRange
protected T
max
protected T
mean
protected T
median
protected T
min
protected List<Quantile<T>>
quantiles
protected T
stddev
protected T
sum
protected T
variance
-
Constructor Summary
Constructors Constructor Description AbstractNumericInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getInterQuartileRange()
Returns the inter-quartile-range of this field.T
getMax()
Return the maximum value for this field.T
getMean()
Returns the mean value for this field.T
getMedian()
Returns the median of values for this field.T
getMin()
Return the minimum value for this field.Class<?>
getNumericType()
Gets the generic type of this class.List<Quantile<T>>
getQuantiles()
Returns the quantiles of this field.T
getStddev()
Return the standard deviation of values for this field.T
getSum()
Return the summation of values for this field.T
getVariance()
Return the variance of values for this field.void
setInterQuartileRange(T interQuartileRange)
Sets the inter-quartile-range of this field.void
setMax(T max)
Sets the maximum value for this field.void
setMean(T mean)
Sets the mean value for this field.void
setMedian(T median)
Sets the median of values for this field.void
setMin(T min)
Sets the minimum value for this field.void
setQuantiles(List<Quantile<T>> quantiles)
Sets the quantiles of this field.void
setStddev(T stddev)
Sets the standard deviation of values for this field.void
setSum(T sum)
Sets the summation of values for this field.void
setVariance(T variance)
Sets the variance of values for this field.String
toString()
-
-
-
Field Detail
-
ELEM_NUMERIC_INFO
protected static final String ELEM_NUMERIC_INFO
- See Also:
- Constant Field Values
-
ATTR_MIN
protected static final String ATTR_MIN
- See Also:
- Constant Field Values
-
ATTR_MAX
protected static final String ATTR_MAX
- See Also:
- Constant Field Values
-
ATTR_MEAN
protected static final String ATTR_MEAN
- See Also:
- Constant Field Values
-
ATTR_STANDARD_DEVIATION
protected static final String ATTR_STANDARD_DEVIATION
- See Also:
- Constant Field Values
-
ATTR_MEDIAN
protected static final String ATTR_MEDIAN
- See Also:
- Constant Field Values
-
ATTR_IQR
protected static final String ATTR_IQR
- See Also:
- Constant Field Values
-
ATTR_VARIANCE
protected static final String ATTR_VARIANCE
- See Also:
- Constant Field Values
-
ATTR_SUM
protected static final String ATTR_SUM
- See Also:
- Constant Field Values
-
min
protected T extends Number & Comparable<? super T> min
-
max
protected T extends Number & Comparable<? super T> max
-
mean
protected T extends Number & Comparable<? super T> mean
-
stddev
protected T extends Number & Comparable<? super T> stddev
-
variance
protected T extends Number & Comparable<? super T> variance
-
sum
protected T extends Number & Comparable<? super T> sum
-
median
protected T extends Number & Comparable<? super T> median
-
interQuartileRange
protected T extends Number & Comparable<? super T> interQuartileRange
-
-
Method Detail
-
getMin
public T getMin()
Return the minimum value for this field. This corresponds to the "minimum" attribute.- Returns:
- the minimum value
-
setMin
public void setMin(T min)
Sets the minimum value for this field. This corresponds to the "minimum" attribute.- Parameters:
min
- the minimum value
-
getMax
public T getMax()
Return the maximum value for this field. This corresponds to the "maximum" attribute.- Returns:
- the maximum value
-
setMax
public void setMax(T max)
Sets the maximum value for this field. This corresponds to the "maximum" attribute.- Parameters:
max
- the maximum value
-
getMean
public T getMean()
Returns the mean value for this field. This corresponds to the "mean" attribute.- Returns:
- the mean value for this field
-
setMean
public void setMean(T mean)
Sets the mean value for this field. This corresponds to the "mean" attribute.- Parameters:
mean
- the mean value for this field
-
getStddev
public T getStddev()
Return the standard deviation of values for this field. This corresponds to the "standardDeviation" attribute.- Returns:
- the standard deviation of values for this field
-
setStddev
public void setStddev(T stddev)
Sets the standard deviation of values for this field. This corresponds to the "standardDeviation" attribute.- Parameters:
stddev
- the standard deviation of values for this field
-
getMedian
public T getMedian()
Returns the median of values for this field. This corresponds to the "median" attribute.- Returns:
- the median of values for this field
-
setMedian
public void setMedian(T median)
Sets the median of values for this field. This corresponds to the "median" attribute.- Parameters:
median
- the median of values for this field
-
getInterQuartileRange
public T getInterQuartileRange()
Returns the inter-quartile-range of this field. This corresponds to the "interQuartileRange" attribute.- Returns:
- the inter-quartile-range for this field
-
setInterQuartileRange
public void setInterQuartileRange(T interQuartileRange)
Sets the inter-quartile-range of this field. This corresponds to the "interQuartileRange" attribute.- Parameters:
interQuartileRange
- the inter-quartile-range for this field
-
getVariance
public T getVariance()
Return the variance of values for this field. This is a custom PMML extension.- Returns:
- the variance of values for this field
-
setVariance
public void setVariance(T variance)
Sets the variance of values for this field. This is a custom PMML extension.- Parameters:
variance
- the variance of values for this field
-
getSum
public T getSum()
Return the summation of values for this field. This is a custom PMML extension.- Returns:
- the summation of values for this field
-
setSum
public void setSum(T sum)
Sets the summation of values for this field. This is a custom PMML extension.- Parameters:
sum
- the summation of values for this field
-
getQuantiles
public List<Quantile<T>> getQuantiles()
Returns the quantiles of this field. This returns the values of theQuantile
sub-element.- Returns:
- the quantiles of this field
-
setQuantiles
public void setQuantiles(List<Quantile<T>> quantiles)
Sets the quantiles of this field. This sets the values of theQuantile
sub-element.- Parameters:
quantiles
- the quantiles of this field
-
getNumericType
public Class<?> getNumericType()
Gets the generic type of this class.- Returns:
- the type of this class
-
-