Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

fc_find_acceptance_interval_gauss

gammapy.stats.fc_find_acceptance_interval_gauss(mu, sigma, x_bins, alpha)[source]

Analytical acceptance interval for Gaussian with boundary at the origin.

xmaxxminP(x|mu)dx=alpha

For more information see documentation.

Parameters:

mu : float

Mean of the Gaussian

sigma : float

Width of the Gaussian

x_bins : array-like

Bins in x

alpha : float

Desired confidence level

Returns:

(x_min, x_max) : tuple of floats

Acceptance interval