Learn R Programming

berryFunctions (version 1.4)

nse: Nash-Sutcliffe efficiency

Description

compute Nash-Sutcliffe efficiency from two vectors. Based on eval.NSeff in RHydro Package

Usage

nse(obs,sim)

Arguments

obs
Vector with observational data.
sim
simulated data.

Value

  • Numeric.

Details

Basically does the following, after some input checks: 1 - ( sum((obs - sim)^2) / sum((obs - mean(obs))^2) )

See Also

rmse, rsquare

Examples

Run this code
SIM <- dbeta(1:40/40, 3, 10)
OBS <- SIM + rnorm(20,,0.2)
plot(OBS)
lines(SIM)
nse(OBS, SIM)

Run the code above in your browser using DataLab