Get the contribution of one dimension to the RSE.
Get the contribution of one dimension to the Residual Squared Error (RSE)
Input vector of signals for the considered dimension
A vector of candidate change points
This function is used internally by
Morgane Pierre-Jean and Pierre Neuvial