Relative error used for binned data
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.
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
# make some data mod <- runif(100,0,10) ref <- runif(100,0,10) # compute relative error r <- intFun.rel.error(mod,ref)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.