gof | R Documentation |
Goodness of fit measures between observations and simulated values
rmse(obs, sim, na.rm = FALSE)
mae(obs, sim, na.rm = FALSE)
NSE(obs, sim, na.rm = FALSE)
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? |
A numeric vector of length corresponding to the number of columns (which is one in case of one-dimensional inputs.)
rmse()
: Root Mean Square Error
mae()
: Mean Absolute Error
NSE()
: Nash-Sutcliffe efficiency
obs
and sim
must have the same dimensions.
If they are two-dimensional objects, then the GOFs are calculated
for each column separately.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.