public class MeanRaisedToPower extends FeatureHistogramStatistic
Calculates the mean value in a Histogram, and raises it to a power.
  • Constructor Details

    • MeanRaisedToPower

      public MeanRaisedToPower()
  • 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.
    • getPower

      public double getPower()
      The power to which the mean value is raised.

      Default value is 1.0, which leaves the mean unchanged.

    • setPower

      public void setPower(double power)
      The power to which the mean value is raised.

      Default value is 1.0, which leaves the mean unchanged.