calculate_loss: Calculate Loss Function

View source: R/linear-spherical-spline.R

calculate_lossR 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.


spheresmooth documentation built on May 29, 2024, 3:15 a.m.