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.

excess_matching_significance

gammapy.stats.excess_matching_significance(mu_bkg, significance, method='lima')[source]

Compute excess matching a given significance.

This function is the inverse of significance.

Parameters:
mu_bkg : array_like

Known background level

significance : array_like

Significance

method : {‘lima’, ‘simple’}

Select method

Returns:
excess : numpy.ndarray

Excess

Examples

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