/** * Returns the mean value of the histogram * * @param histogram Histogram with N bins * @param N number of bins in the histogram. * @return Mean pixel intensity value */ public static double mean(int[] histogram, int N ) { return mean(histogram, count(histogram,N),N); }