Skip to contents

computes all evaluation metrics given a prediction and a reference vector. The functionality includes general regression metrics and hydrological metrics (wrapper to bigiarini2020hydroGOFSlidingWindowReg):

  • Root Mean Square Error (RMSE)

  • Normalized Root Mean Square Error (NRMSE)

  • Coefficient of Determination (R2)

  • Nash-Sutcliffe Efficiency nash1970nscSlidingWindowReg

  • Kling-Gupta Efficiency gupta2009kgeSlidingWindowReg

Usage

eval_all(prediction, reference)

rmse(prediction, reference)

nrmse(prediction, reference)

r2(prediction, reference)

nse(prediction, reference)

kge(prediction, reference)

Arguments

prediction

a vector or ts object of predicted values

reference

a vector or ts object (on the same time scale as prediction) containing ground truth values

Functions

  • rmse(): Root Mean Squared Error

  • nrmse(): Normalized Root Mean Squared Error

  • r2(): Coefficient of Determination

  • nse(): Nash-Sutcliffe Efficiency

  • kge(): Kling-Gupta Efficiency

References

See also