stat_profile_ul_scipy#

gammapy.modeling.stat_profile_ul_scipy(value_scan, stat_scan, delta_ts=4, interp_scale='sqrt', **kwargs)[source]#

Compute upper limit of a parameter from a likelihood profile.

Parameters
value_scanndarray

Array of parameter values.

stat_scanndarray

Array of delta fit statistic values, with respect to the minimum.

delta_tsfloat, optional

Difference in test statistics for the upper limit. Default is 4.

interp_scale{“sqrt”, “lin”}, optional

Interpolation scale applied to the fit statistic profile. If the profile is of parabolic shape, a “sqrt” scaling is recommended. In other cases or for fine sampled profiles a “lin” can also be used. Default is “sqrt”.

**kwargsdict

Keyword arguments passed to brentq.

Returns
ulfloat

Upper limit value.