normalErrors: Calculate the MSE between a normal function and data.

View source: R/normalFit.R

normalErrorsR Documentation

Calculate the MSE between a normal function and data.

Description

?

Usage

normalErrors(par, data)

Arguments

par

A named numeric vector with parameters mu (mean), sigma (standard deviation), offset (a number added everywhere) and scale (multiplication factor), that describe a normal function.

data

A data frame with columns x and y: data points to compare to the normal function described by the parameters.

Details

?

Value

A numeric value: the mean squared error between the data and the evaluated values of the function at the same x-coordinates.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.