public class Quantile extends FeatureHistogramStatistic
Calculates a specified quantile value from a Histogram.
  • Constructor Details

    • Quantile

      public Quantile()
  • Method Details

    • calculateStatisticFrom

      protected double calculateStatisticFrom(Histogram histogram) throws FeatureCalculationException
      Description copied from class: FeatureHistogramStatistic
      Calculates the statistic from the histogram, that is subsequently returned as the feature-value.
      Specified by:
      calculateStatisticFrom in class FeatureHistogramStatistic
      Parameters:
      histogram - the histogram to calculate the statistic from.
      Returns:
      the calculated statistic.
      Throws:
      FeatureCalculationException - if the calculation cannot succeed.
    • getQuantile

      public double getQuantile()
      The quantile to calculate from the histogram.

      This value should be between 0.0 and 1.0, where:

      • 0.0 represents the minimum value
      • 0.5 represents the median
      • 1.0 represents the maximum value
    • setQuantile

      public void setQuantile(double quantile)
      The quantile to calculate from the histogram.

      This value should be between 0.0 and 1.0, where:

      • 0.0 represents the minimum value
      • 0.5 represents the median
      • 1.0 represents the maximum value