ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

mean_poisson_likelihood_full#

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.

Parameters:
prediction: ndarray

Predicted pixel amplitudes from model

spe_width: ndarray

Width of single p.e. distribution

pedestal: ndarray

Width of pedestal

Returns:
ndarray