r-spatial / dtwSat

Time-Weighted Dynamic Time Warping for satellite image time series analysis
https://www.victor-maus.com/dtwSat/
GNU General Public License v3.0
131 stars 39 forks source link

code difference with R package #46

Closed zilin129 closed 4 years ago

zilin129 commented 4 years ago

Hello, I found a difference between your code in Github and R package. In twdtw.R, Line 41, you compute the local weighted matrix, cm = phi weight.fun(psi). However, in R package, that is cm = (1 - theta) phi + theta * weight.fun(psi). Can you please check it and see?

vwmaus commented 4 years ago

GiHub version submitted to CRAN!