gof: Goodness of fit measures between observations and simulated...

gofR Documentation

Goodness of fit measures between observations and simulated values

Description

Goodness of fit measures between observations and simulated values

Usage

rmse(obs, sim, na.rm = FALSE)

mae(obs, sim, na.rm = FALSE)

NSE(obs, sim, na.rm = FALSE)

Arguments

obs

A numeric one- or two-dimensional object.

sim

A numeric one- or two-dimensional object.

na.rm

A logical value. Should (pairwise) missing values be removed?

Value

A numeric vector of length corresponding to the number of columns (which is one in case of one-dimensional inputs.)

Functions

  • rmse(): Root Mean Square Error

  • mae(): Mean Absolute Error

  • NSE(): Nash-Sutcliffe efficiency

Details

obs and sim must have the same dimensions. If they are two-dimensional objects, then the GOFs are calculated for each column separately.

References

Nash, J. E. and Sutcliffe, J. V. (1970). River flow forecasting through conceptual models part I: A discussion of principles. Journal of Hydrology, 10:3, 282-290.


DrylandEcology/rSW2utils documentation built on Dec. 9, 2023, 10:44 p.m.