Description Usage Arguments Value Examples
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.
1 | intFun.rel.error(mod, ref)
|
mod |
An R object (binned time means of model output) |
ref |
An R object (binned time means of reference data) |
An R object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.