Module/class DTWData will be the only object using the DTWDLLApi class methods
listed below.
addTemplate
This method adds one template to the internal DLL datastructures.
int addTemplates(float[] vec)
vec |
An array of single-precision floating point numbers. |
int |
An integer number representing the index of the stored template. |
getTemplate
This method returns a specified template from the DLL.
float[] getTemplate(int tIndex)
tIndex |
An integer number which specifies one template index in the DLL. |
float[] |
An array containing the specified template's values. |
delTemplate
This method deletes a template specified an index number, from the internal data structures of the DLL.
boolean delTemplate(int tIndex)
tIndex |
The index number of the template to be deleted |
true | Deletion succeeded |
false | Template at position tIndex does not exist |
CompareAll
This method runs the DTW algorithm, implemented in the DLL, against all stored templates.
DTWOneResult[] CompareAll(float [] oSeq, DTWParameters param)
vec |
An array containing the observation time-series. |
param |
An instance of DTWParameters class. |
DTWAllResultsElement[] |
An array of sorted DTWAllResultsElement objects |
CompareOne
This method runs the algorithm against a specified template and observation.
DTWOneResult CompareOne(float [] oSeq, DTWParameters param, int tIndex)
oSeq |
An array containing the observation time-series. |
param |
An instance of DTWParameters class. |
tIndex |
An integer number which specifies a single template. |
DTWOneResult |
An instance of DTWOneResult class, containing values produced by the DTW algorithm, implemented in the DLL. |