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_gaussian#

ctapipe.image.mean_poisson_likelihood_gaussian(prediction, spe_width, pedestal)[source]#

Calculation of the mean of twice the negative log likelihood for a give expectation value of pixel intensity in the gaussian approximation. This is useful in the calculation of the goodness of fit.

Parameters:
prediction: ndarray

Predicted pixel amplitudes from model

spe_width: ndarray

Width of single p.e. distribution

pedestal: ndarray

Width of pedestal

Returns:
ndarray