likelihood_profile_ul_scipy¶
-
gammapy.utils.fitting.
likelihood_profile_ul_scipy
(value_scan, dloglike_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.
- dloglike_scan :
ndarray
Array of delta log-likelihood values, with respect to the minimum.
- delta_ts : float
Difference in test statistics for the upper limit.
- interp_scale : {“sqrt”, “lin”}
Interpolation scale applied to the likelihood 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.
- **kwargs : dict
Keyword arguments passed to
brentq
.
Returns: - ul : float
Upper limit value.
- value_scan :