getAbsWeightedErr: calculate sum of absolute errors.

View source: R/estimateVPRMPars.R

getAbsWeightedErrR Documentation

calculate sum of absolute errors.

Description

calculate sum of absolute errors, ignoring NAs.

Usage

getAbsWeightedErr(x)

Arguments

x

error values

Details

if there are no valid (non-NA) data points, return a very high value (currently 1e20). This allows use with DEoptim, which issues an error if a cost function returns NA.

Value

sum of absolute errors in x.

Author(s)

Timothy W. Hilton


Timothy-W-Hilton/VPRMLandSfcModel documentation built on July 29, 2023, 8:43 p.m.