rmse | R Documentation |
(Normalized) root mean square error
Calculate the (normalized) root-mean-square-error of two vectors.
rmse(a, b)
nrmse(a, b, normer = "sd")
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
|
The (normalised) rmse of the provided vector.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.