init_param: init_param

View source: R/doubleLogistics-init_param.R

init_paramR Documentation

init_param

Description

Initialize parameters of double logistic function

Usage

init_param(y, t, w, type = 1L)

init_Zhang(e, type = 1L, ...)

init_AG(e, type = 1L, ...)

init_AG2(e, type = 1L, ...)

init_Beck(e, type = 1L, ...)

init_Elmore(e, type = 1L, ...)

init_Gu(e, type = 1L, ...)

init_Klos(e, type = 1L, ...)

Arguments

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.

type

integer, 1 or -1

  • 1: trough-to-trough curve fitting

  • -1: peak-to-peak curve fitting

e

The object returned by init_param()

...

Others will be ignored.

Examples

library(phenofit)
# simulate vegetation time-series
fFUN = doubleLog.Beck
par  = c(
    mn  = 0.1,
    mx  = 0.7,
    sos = 50,
    rsp = 0.1,
    eos = 250,
    rau = 0.1)
t    <- seq(1, 365, 8)
tout <- seq(1, 365, 1)
y <- fFUN(par, t)

l_param <- init_param(y, t)

phenofit documentation built on May 29, 2024, 2:39 a.m.