DTWParameters
Transferring the parameters of the DTW algorithm
struct DTWParameters { int dmetrics; int wwidth; int sconstraint; int seoffset; }
dmetrics |
Which distance metrics is to be used |
DTW_EMETRICS = 0 = Euclidian metrics | |
DTW_DMETRICS = 1 = Derivative metrics | |
wwidth |
Width of the warping window |
INT_MAX = no warping window | |
sconstraint |
Reserved for future use |
seoffset |
0 = Fixed start and end point |
>0 = Allowable start and end point offset |
DTWAllResultsElement
DTWAllResultsElement is an element of a DTW results array, when the algorithm has been run against all templates.
struct DTWAllResultsElement { int tIndex; float dtwDistance; }
tIndex |
Index number of a template |
dtwDistance |
The calculated DTW distance between the observation and the template in question |
DTWOneResult
Transferring the results of a DTW run when an observation is compared against one template.
struct DTWOneResult { float dtwDistance; int** warpingPath; int pathLen; }
dtwDistance |
The calculated DTW distance between the observation and the selected template |
warpingPath |
A table of size
![]() ![]() |
pathLen |
Number of points on the warping path |