Learn R Programming

dtwSat (version 0.2.8)

linearWeight: Linear weight function

Description

Builds a linear time weight function to compute the TWDTW local cost matrix [1].

Usage

linearWeight(a, b = 0)

Value

A function object.

Arguments

a

numeric. The slop of the line.

b

numeric. The intercept of the line.

Author

Victor Maus, vwmaus1@gmail.com

Details

The linear linearWeight and logisticWeight weight functions can be passed to twdtwApply through the argument weight.fun. This will add a time-weight to the dynamic time warping analysis. The time weight creates a global constraint useful to analyse time series with phenological cycles of vegetation that are usually bound to seasons. In previous studies by Maus:2016;textualdtwSat the logistic weight had better results than the linear for land cover classification. See Maus:2016;textualdtwSat and Maus:2019;textualdtwSat.

References

See Also

twdtwApply

Examples

Run this code
lin_fun = linearWeight(a=0.1)
lin_fun

Run the code above in your browser using DataLab