Learn R Programming

dtwSat (version 0.2.8)

logisticWeight: Logistic weight function

Description

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

Usage

logisticWeight(alpha, beta)

Value

A function object.

Arguments

alpha

numeric. The steepness of logistic weight.

beta

numeric. The midpoint of logistic weight.

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 analyze 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
log_fun = logisticWeight(alpha=-0.1, beta=100)
log_fun

Run the code above in your browser using DataLab