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