f_goal2: objective function of double logistics

Description Usage Arguments

View source: R/doubleLogistics_cpp.R

Description

objective function of double logistics

Usage

1
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.


phenofit documentation built on April 2, 2020, 5:07 p.m.