sensitivity

gammapy.stats.sensitivity(mu_bkg, significance, quantity='excess', method='lima')[source]

Compute sensitivity.

TODO: document what “sensitivity” is ... excess or n_on. Use quantity parameter or decide on one quanity and remove that option.

Parameters:

mu_bkg : array_like

Known background level

quantity : {‘excess’, ‘n_on’}

Select output quantity

method : {‘lima’, ‘simple’}

Select method

Returns:

sensitivity : ndarray

Sensitivity according to the method chosen.

Examples

>>> # sensitivity(mu_bkg=0.2, significance=5, method='lima')
TODO
>>> # sensitivity(mu_bkg=0.2, significance=5, method='simple')
TODO