public class TotalCount extends FeatureHistogramStatistic
Calculates the total count of all entries in a Histogram.

This represents the sum of frequencies for all values in the histogram, which is equivalent to the total number of pixels or data points represented by the histogram.

  • Constructor Details

    • TotalCount

      public TotalCount()
  • Method Details

    • calculateStatisticFrom

      protected double calculateStatisticFrom(Histogram histogram)
      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.