Loading

ZDTW


gts distance
Since v1.2.11
Available on all platforms
See also

The DTW function computes a Dynamic Time Warping pseudo-distance on two Geo Time Series™.

The Geo Time Series™ will be Z-normalized prior to the computation.

Signature

Examples

// // Compute the DTW distance with no threshold // NEWGTS 1 360 <% DUP 360.0 / 2 PI * * SIN NaN NaN NaN 4 ROLL ADDVALUE %> FOR NEWGTS 1 360 <% DUP 360.0 / 2 PI * * COS NaN NaN NaN 4 ROLL ADDVALUE %> FOR 0.0 ZDTW
// // Compute the DTW with 200 as the threshold (the computed distance is ~285) // NEWGTS 1 360 <% DUP 360.0 / 2 PI * * SIN NaN NaN NaN 4 ROLL ADDVALUE %> FOR NEWGTS 1 360 <% DUP 360.0 / 2 PI * * COS NaN NaN NaN 4 ROLL ADDVALUE %> FOR 285.0 ZDTW