Class Quantile<T extends Number & Comparable<? super T>>


  • public final class Quantile<T extends Number & Comparable<? super T>>
    extends Object
    Corresponds to the PMML Quantile element.
    • 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