This function adds a template to internal data structures of the DLL.
int DTAddTemplate(float* tSeq, int nSeq)
tSeq |
An array of single-precision floating point numbers containing the template |
nSeq |
Number of elements in tSeq. |
A unique index number of the template.
This function deletes the selected template from the internal data structures of the DLL.
int DTDelTemplate(int tIndex)
tIndex |
The index number of the template to be deleted. |
0 | Deleting succeeded |
1 | Template numbered tIndex does not exist |
Compares a given observation against all templates stored in the internal data structures of the DLL.
DTWAllResultsElement* DTCompareAll(float* oSeq, int nSeq, DTWParameters params, int* numresults)
oSeq |
An array of single-precision floating point numbers containing the observation |
nSeq |
Number of values in oSeq |
params |
A data structure containing the parameters of the DTW algorithm (described in section 4.2.1) |
numresults |
The number of results will be stored to the memory location that this pointer points to. |
An array whose each element contains an index number of a template and the DTW distance between the observation and the template.
Note that the caller is responible for freeing the memory used by the returned array.
Compares a given observation against a selected template.
DTWOneResult DTCompareOne(float* oSeq, int nSeq, DTWParameters params, int tIndex)
oSeq |
An array of single-precision floating point numbers containing the observation |
nSeq |
Number of values in oSeq |
params |
A data structure containing the parameters of the DTW algorithm (described in section 4.2.1) |
tIndex |
Index number of the template that the observation is compared against |
A DTWOneResult
structure described in section 4.2.1.
Note that the caller is responsible for freeing the memory used by the DTWOneResult.warpingPath
array.
Returns an array containing the selected template.
float* DTGetTemplate(int tIndex, int* nSeq)
tIndex |
Index number of the template to be returned |
nSeq |
The length of the returned template is stored into this memory location |
An array of single-precision floating point values containing the selected template.
Note that the caller is responible for freeing the memory used by the returned array.