root_mean_squared_error {spatialRF}R Documentation

RMSE and normalized RMSE

Description

Computes the rmse or normalized rmse (nrmse) between two numeric vectors of the same length representing observations and model predictions.

Usage

root_mean_squared_error(
  o,
  p,
  normalization = c("rmse", "all", "mean", "sd", "maxmin", "iq")
)

Arguments

o

Numeric vector with observations, must have the same length as p.

p

Numeric vector with predictions, must have the same length as o.

normalization

character, normalization method, Default: "rmse" (see Details).

Details

The normalization methods go as follows:

Value

Named numeric vector with either one or 5 values, as selected by the user.

Examples

if(interactive()){

 root_mean_squared_error(
   o = runif(10),
   p = runif(10)
   )

}

[Package spatialRF version 1.1.4 Index]