rmse {ConFluxPro} | R Documentation |
(Normalized) root mean square error
Description
(Normalized) root mean square error
Calculate the (normalized) root-mean-square-error of two vectors.
Usage
rmse(a, b)
nrmse(a, b, normer = "sd")
Arguments
a , b |
numeric vectors of same length to be compared |
normer |
a character string defining the type of normalization to be applied. Can be one of
|
Value
The (normalised) rmse of the provided vector.
Examples
set.seed(42)
a <- c(1, 2, 3, 4)
b <- a * rnorm(4, 1, 0.1)
rmse(a, b)
nrmse(a, b, normer = "sd")
nrmse(a, b, normer = "mean")
[Package ConFluxPro version 1.3.1 Index]