f_goal2: objective function of double logistics

View source: R/f_goal.R

f_goal2R Documentation

objective function of double logistics

Description

objective function of double logistics

Usage

f_goal2(par, fun, y, t, pred, 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

pred

Numeric Vector, predicted values

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 May 29, 2024, 2:39 a.m.