FitDoubleLogKlLight: A function to fit a double logisitic function to a vector...

Description Usage Arguments Details Value Author(s) References

View source: R/FitDoubleLogKlLight.R

Description

This function fits a double logistic curve to observed values using the function as described in Klosterman et al. (2014), equation 7.

Usage

1
2
FitDoubleLogKlLight(x, t = index(x), tout = t, hessian=FALSE, 
sf=quantile(x, probs=c(0.05, 0.95), na.rm=TRUE), ...)

Arguments

x

A vector or, better, an univariate ts or zoo object.

t

A vector of time (in numeric doys), if not provided index(x) is retrieved.

tout

For gapfilling pourposes, a vector of time steps at which the function can be predicted.

hessian

Currently unimplemented.

sf

Scaling factors required to normalize the data prior to the fitting. If the function is called by e.g. greenProcess sf is automatically calculated.

...

Further arguments currenlty unused.

Details

The function estimates parameters of the double logistic equation from Klosterman et al. 2014. The wrapper function KlostermanFit calls this function and additionally allows the calculation of uncertainty. So better use KlostermanFit. This function performs an optimization similar in concept to the one performed in FitDoubleLogKlHeavy but faster and in a less accurate manner. It it suggested to fit the light version of the equation and if the fit is not good enought, check out FitDoubleLogKlHeavy.

Value

A list containing the following items.

predicted

Predicted values from the equation

params

Equation parameters

formula

The equation

Author(s)

Gianluca Filippa <gian.filippa@gmail.com>

References

Klosterman ST, Hufkens K, Gray JM, Melaas E, Sonnentag O, Lavine I, Mitchell L, Norman R, Friedl MA, Richardson A D (2014) Evaluating remote sensing of deciduous forest phenology at multiple spatial scales using PhenoCam imagery, Biogeosciences, 11, 4305-4320, doi:10.5194/bg-11-4305-2014.


phenopix documentation built on May 2, 2019, 4:50 p.m.