objective function of double logistics
f_goal2(par, fun, y, t, pred, w = NULL, ylu = NULL, ...)A vector of parameters
A curve fitting function, can be one of doubleAG,
doubleLog.Beck, doubleLog.Elmore, doubleLog.Gu,
doubleLog.Klos, doubleLog.Zhang, see Logistic()
for details.
Numeric vector, vegetation index time-series
Numeric vector, Date variable
Numeric Vector, predicted values
(optional) Numeric vector, weights of y. If not specified,
weights of all NA values will be wmin, the others will be 1.0.
[ymin, ymax], which is used to force ypred in the range of ylu.
others will be ignored.