neg_log_likelihood_numeric

ctapipe.image.neg_log_likelihood_numeric(image, prediction, spe_width, pedestal, confidence=(0.001, 0.999))[source]

Calculate likelihood of prediction given the measured signal, full numerical integration from [denaurois2009].

Parameters
image: ndarray

Pixel amplitudes from image (\(s\)).

prediction: ndarray

Predicted pixel amplitudes from model (\(μ\)).

spe_width: ndarray

Width of single p.e. peak (\(σ_γ\)).

pedestal: ndarray

Width of pedestal (\(σ_p\)).

confidence: tuple(float, float), 0 < x < 1

Confidence interval of poisson integration.

Returns
float