intFun.rel.error: Relative error used for binned data

Description Usage Arguments Value Examples

View source: R/intFun.R

Description

This function computes the relative error for binned data used for assessing functional relationships: $\varepsilon_{func}^u=āˆš{\frac{\int(f_{mod}(u)-f_{ref}(u))^2du}{\int f_{ref}(u)^2du}}$

where f_{mod}(u) and f_{ref}(u) are the binned time means of the model and reference data, respectively.

Usage

1
intFun.rel.error(mod, ref)

Arguments

mod

An R object (binned time means of model output)

ref

An R object (binned time means of reference data)

Value

An R object

Examples

1
2
3
4
5
# make some data
mod <- runif(100,0,10)
ref <- runif(100,0,10)
# compute relative error
r <- intFun.rel.error(mod,ref)

amber documentation built on Aug. 28, 2020, 5:08 p.m.