calc_poisson_fu

hep_spt.calc_poisson_fu(m, cl=0.6826894921370859)[source]

Return the lower and upper frequentist uncertainties for a poisson distribution with mean “m”.

Parameters
  • m (float or np.ndarray(float)) – mean of the Poisson distribution.

  • cl (float or np.ndarray(float)) – confidence level (between 0 and 1).

Returns

Lower and upper uncertainties.

Return type

(float, float) or np.ndarray(float, float)

Note

This function might turn very time consuming. Consider using poisson_fu() instead.