# Miscellaneous Utilities¶

pygram11.utils.densify1d(h, range, binw=None, sumw2=None)[source]

normalize histogram as a PDF such that the integral over the range is equal to 1.

This function is used by the histogramming functions if the density argument is true.

Parameters
• h (array_like) – histogram bin heights

• range ((float, float)) – histogram axis limits

• binw (array_like, optional) – array of bin widths if variable width bins (None assumes fixed width bins).

• sumw2 (array_like) – array representing sum of weights squared in each bin

Returns

pygram11.omp_available()[source]

query the existence of OpenMP acceleration

Returns

whether or not OpenMP is available

Return type

bool

pygram11.omp_max_threads()[source]

query the number of threads available to OpenMP

Returns

Return type

int