Skip to contents

Computes a performance criterion for comparing simulated and observed runoff. If the criterion is "KGEtang", it uses the KGEtang function. Otherwise, it delegates to calc_hydroGOF() for other supported criteria.

Usage

calc_crit(error_crit, Qsim, Qobs)

Arguments

error_crit

A string specifying the error criterion to compute. Supported values include "KGEtang" and any criterion accepted by calc_hydroGOF().

Qsim

A numeric vector of simulated runoff values.

Qobs

A numeric vector of observed runoff values.

Value

A numeric value representing the selected performance criterion.

See also

KGEtang, calc_hydroGOF

Examples

Qsim <- c(1, 2, 3, 4, 5)
Qobs <- c(1.1, 2.1, 2.9, 4.2, 5.1)
calc_crit("KGEtang", Qsim, Qobs)
#> [1] 0.948507