Linear weight function
Builds a linear time weight function to compute the TWDTW local cost matrix .
linearWeight(a, b = 0)
numeric. The slop of the line.
numeric. The intercept of the line.
logisticWeight weight functions
can be passed to
twdtwApply through the argument
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  the
logistic weight had better results than the linear for land cover classification.
See  for details about the method.
Victor Maus, email@example.com
 Maus V, Camara G, Cartaxo R, Sanchez A, Ramos FM, de Queiroz, GR. (2016). A Time-Weighted Dynamic Time Warping method for land use and land cover mapping. Selected Topics in Applied Earth Observations and Remote Sensing, IEEE Journal of, vol.PP, no.99, pp.1-11.
lin_fun = linearWeight(a=0.1) lin_fun