Next: , Previous: Searching histogram ranges, Up: Histograms


21.6 Histogram Statistics

— Function: double gsl_histogram_max_val (const gsl_histogram * h)

This function returns the maximum value contained in the histogram bins.

— Function: size_t gsl_histogram_max_bin (const gsl_histogram * h)

This function returns the index of the bin containing the maximum value. In the case where several bins contain the same maximum value the smallest index is returned.

— Function: double gsl_histogram_min_val (const gsl_histogram * h)

This function returns the minimum value contained in the histogram bins.

— Function: size_t gsl_histogram_min_bin (const gsl_histogram * h)

This function returns the index of the bin containing the minimum value. In the case where several bins contain the same maximum value the smallest index is returned.

— Function: double gsl_histogram_mean (const gsl_histogram * h)

This function returns the mean of the histogrammed variable, where the histogram is regarded as a probability distribution. Negative bin values are ignored for the purposes of this calculation. The accuracy of the result is limited by the bin width.

— Function: double gsl_histogram_sigma (const gsl_histogram * h)

This function returns the standard deviation of the histogrammed variable, where the histogram is regarded as a probability distribution. Negative bin values are ignored for the purposes of this calculation. The accuracy of the result is limited by the bin width.

— Function: double gsl_histogram_sum (const gsl_histogram * h)

This function returns the sum of all bin values. Negative bin values are included in the sum.