interpolate_likelihood_profile

gammapy.utils.interpolation.interpolate_likelihood_profile(value_scan, dloglike_scan, interp_scale='sqrt')[source]

Helper function to interpolate likelihood profiles.

Parameters:
value_scan : ndarray

Array of parameter values.

dloglike_scan : ndarray

Array of delta log-likelihood values, with respect to the minimum.

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.

Returns:
interp : ScaledRegularGridInterpolator

Interpolator instance.