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

1 | ```
linearWeight(a, b = 0)
``` |

`a` |
numeric. The slop of the line. |

`b` |
numeric. The intercept of the line. |

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 [1] the
logistic weight had better results than the linear for land cover classification.
See [1] for details about the method.

An `function`

object.

Victor Maus, vwmaus1@gmail.com

[1] 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.

1 2 | ```
lin_fun = linearWeight(a=0.1)
lin_fun
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.