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_scan
ndarray
Array of parameter values.
- stat_scan
ndarray
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
.
- value_scan
- Returns
- ulfloat
Upper limit value.