powered by
This function calculates the loss function based on the squared spherical distances between observed values and predicted values on the curve.
calculate_loss(y, gamma)
Loss value.
Matrix of observed values.
Matrix of predicted values.