ctapipe.image.pixel_likelihood.mean_poisson_likelihood_full(prediction, spe_width, ped)[source]#

Calculation of the mean of twice the negative log likelihood for a give expectation value of pixel intensity using the full numerical integration. This is useful in the calculation of the goodness of fit. This numerical integration is very slow and really doesn’t make a large difference in the goodness of fit in most cases.

prediction: ndarray

Predicted pixel amplitudes from model

spe_width: ndarray

Width of single p.e. distribution

pedestal: ndarray

Width of pedestal