Module datarush.analytics
Class Quantile<T extends Number & Comparable<? super T>>
- java.lang.Object
-
- com.pervasive.datarush.analytics.stats.Quantile<T>
-
public final class Quantile<T extends Number & Comparable<? super T>> extends Object
Corresponds to the PMMLQuantile
element.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getQuantilePercentage()
Returns the percentage represented by this quantile.T
getQuantileValue()
Returns the value of the quantile.
-
-
-
Constructor Detail
-
Quantile
public Quantile(double quantilePercentage, T quantileValue)
Create a new quantile- Parameters:
quantilePercentage
- the percentage represented by this quantile. Must be between 0 (inclusive) and 100 (inclusive) This corresponds to the "quantileLimit" attribute.quantileValue
- the value of the quantile. This corresponds to the "quantileValue" attribute.
-
-
Method Detail
-
getQuantilePercentage
public double getQuantilePercentage()
Returns the percentage represented by this quantile. Must be between 0 (inclusive) and 100 (inclusive) This corresponds to the "quantileLimit" attribute.- Returns:
- the percentage represented by this quantile
-
getQuantileValue
public T getQuantileValue()
Returns the value of the quantile. This corresponds to the "quantileValue" attribute.- Returns:
- the value of the quantile
-
-