Learn R Programming

phenofit (version 0.3.2)

f_goal2: objective function of double logistics

Description

objective function of double logistics

Usage

f_goal2(par, fun, y, t, ypred, w = NULL, ylu = NULL, ...)

Arguments

par

A vector of parameters

fun

A curve fitting function, can be one of doubleAG, doubleLog.Beck, doubleLog.Elmore, doubleLog.Gu, doubleLog.Klos, doubleLog.Zhang, see Logistic() for details.

y

Numeric vector, vegetation index time-series

t

Numeric vector, Date variable

w

(optional) Numeric vector, weights of y. If not specified, weights of all NA values will be wmin, the others will be 1.0.

ylu

ymin, ymax, which is used to force ypred in the range of ylu.

...

others will be ignored.