kge: Computes the Kling-Gupta efficiency coefficient.

Description Usage Arguments Value

View source: R/performance_metrics.R

Description

This function computes the Kling-Gupta efficiency coefficient. It islargely inspired by the similar function in the HydroGOF package. Here, only a simplified version is provided with no checks on inputs and very little formatting.

Usage

1
kge(obs, sim, na.rm = TRUE, method = 1)

Arguments

obs

numeric vector. Observed streamflow vector.

sim

numeric vector. Simulated streamflow vector.

na.rm

logical. Whether missing values should be ignored.

method

two methods are implemented (see hydroGOF::KGE): one from Gupta et al. (2009) and the other one from Kling et al. (2012)

Value

Returns a float value between -Inf and 1 corresponding to the Kling-Gupta efficiency coefficient.


IvanHeriver/hsa-R-package documentation built on Dec. 17, 2021, 11:32 p.m.