Learn R Programming

spheresmooth (version 0.1.3)

calculate_loss: 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)

Value

Loss value.

Arguments

y

Matrix of observed values.

gamma

Matrix of predicted values.