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

ctapipe.image.mean_squared_error(pixel_x, pixel_y, weights, radius, center_x, center_y)[source]#

Calculate the weighted mean squared error for a circle

Parameters:
pixel_x: array-like

x coordinates of the camera pixels

pixel_y: array-like

y coordinates of the camera pixels

weights: array-like

weights for the camera pixels, will usually be the pe charges

radius: float

radius of the ring

center_x: float

x coordinate of the ring center

center_y: float

y coordinate of the ring center