getSSE: calculate sum of squares

View source: R/estimateVPRMPars.R

getSSER Documentation

calculate sum of squares

Description

calculates sum of squares of X.

Usage

getSSE(x)

Arguments

x

values for which to calculate sum of squares

Details

if there are no valid data points, return an arbitrary (and very high) SSE. This is a little bit of a hack - it really ought to return NA in that situation, but it can"t return NA, because the DEoptim implementation of DE requires that the optimized function return a non-NA scalar.

Value

sum of squares of x

Author(s)

Timothy W. Hilton


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