Description Usage Arguments Value
View source: R/performance_metrics.R
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.
1 |
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) |
Returns a float value between -Inf and 1 corresponding to the Kling-Gupta efficiency coefficient.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.