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.

chi_squared#

ctapipe.image.pixel_likelihood.chi_squared(image, prediction, pedestal, error_factor=2.9)[source]#

Simple chi-squared statistic from Le Bohec et al 2008

Parameters:
image: ndarray

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

prediction: ndarray

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

pedestal: ndarray

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

error_factor: float

Ad-hoc error factor

Returns:
ndarray