GOF: GOF

View source: R/GOF.R

NSER Documentation

GOF

Description

Good of fitting

Usage

NSE(yobs, ysim, w, ...)

KGE(yobs, ysim, ...)

GOF(yobs, ysim, w, include.cv = FALSE, include.r = TRUE)

Arguments

yobs

Numeric vector, observations

ysim

Numeric vector, corresponding simulated values

w

Numeric vector, weights of every points. If w included, when calculating mean, Bias, MAE, RMSE and NSE, w will be taken into considered.

...

ignored

include.cv

If true, cv will be included.

include.r

If true, r and R2 will be included.

Value

  • RMSE root mean square error

  • NSE NASH coefficient

  • MAE mean absolute error

  • AI Agreement index (only good points (w == 1)) participate to calculate. See details in Zhang et al., (2015).

  • Bias bias

  • Bias_perc bias percentage

  • n_sim number of valid obs

  • cv Coefficient of variation

  • R2 correlation of determination

  • R pearson correlation

  • pvalue pvalue of R

References

  1. https://en.wikipedia.org/wiki/Coefficient_of_determination

  2. https://en.wikipedia.org/wiki/Explained_sum_of_squares

  3. https://en.wikipedia.org/wiki/Nash%E2%80%93Sutcliffe_model_efficiency_coefficient

  4. Zhang Xiaoyang (2015), http://dx.doi.org/10.1016/j.rse.2014.10.012

Examples

yobs = rnorm(100)
ysim = yobs + rnorm(100)/4
GOF(yobs, ysim)


rpkgs/hydroTools documentation built on Oct. 8, 2024, 7:47 p.m.