Loading

RAWDTW

gts distance

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

The computation is performed on the raw Geo Time Series™, no transformation is applied to them.

RAWDTW is available since version 1.2.11.

See also

Signatures

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 RAWDTW
// // Compute the DTW with 13 as the threshold (the computed distance is ~14.1) // 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 13.0 RAWDTW