Go to the first, previous, next, last section, table of contents.

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.


Go to the first, previous, next, last section, table of contents.