calculate_loss {spheresmooth} | R Documentation |
Calculate Loss Function
Description
This function calculates the loss function based on the squared spherical distances between observed values and predicted values on the curve.
Usage
calculate_loss(y, gamma)
Arguments
y |
Matrix of observed values. |
gamma |
Matrix of predicted values. |
Value
Loss value.
[Package spheresmooth version 0.1.0 Index]