rmseCurves: RMSE of a sample of curves with a template

Description Usage Arguments Value Author(s) Examples

View source: R/rmseCurves.R

Description

This function takes in a sample of curves in the form of a matrix or data.frame with each column being a separate curve, and returns the average RMSE (root mean squared error) between the curves and a template.

Usage

1
rmseCurves(curves, template = NULL, Round = 4)

Arguments

curves

A matrix or data.frame of curves, each column being a separate curve

template

A template curve. If NULL the template is estimated as rowMeans(curves)

Round

An integer value to round off the average rmse.

Value

Returns a list

rmseVector

A vector of rmse between curves and template

rmseMean

Average of rmseVector

Author(s)

Subhrangshu Nandi; PhD, Statistics; snandi@wisc.edu or nands31@gmail.com

Examples

1
2
3
data( growth, package = 'fda' )
Mat1 <- growth[['hgtm']]
rmseMat1 <- rmseCurves( curves = Mat1 )

snandi/Registration documentation built on May 30, 2019, 5:04 a.m.