Learn R Programming

sephora (version 0.1.31)

ndvi_derivatives: Calculates derivatives of idealized NDVI

Description

Provides function expression of derivatives of an idealized NDVI curve fitted through a harmonic regression model

Usage

ndvi_derivatives(amp, pha, degree, L)

Value

A function expression

Arguments

amp

numeric vector specifying amplitude parameter

pha

numeric vector specifying phase angle parameter

degree

integer. What derivative's degree should be calculated? degree=0 corresponds to harmonic regression fit

L

integer giving the number of observations per period

Details

This function returns the derivatives of \(f(t)\), with respect to \(t\), when \(f\) has the representation:

\(f(t) = \sum_{k=1}^{p} a[i] cos( (2 \pi k t)/L - \phi[i] )\),

where \(a\) and \(\phi\) are substituted by the vectors amp and phase, respectively. The degree of the derivative is given by the argument degree.

See Also

phenopar, phenopar_polygon, haRmonics