residual_sum_of_squares#

ctapipe.fitting.residual_sum_of_squares(X, y, beta)[source]#

Calculate the residual sum of squares

Parameters:
X: np.array

Design matrix of shape (N, 2), as created by ~ctapipe.fitting.design_matrix

y: np.array

y values

beta: np.array

Parameter vector of the linear regression