addTemplate
This method adds one or many templates to the internal DLL datastructures.
jint addTemplate(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.
jfloat[] getTemplate(jint tIndex)
tIndex |
An integer number which specifies one template index in the DLL. |
jfloat[] |
An array containing the values from the specified template. |
delTemplate
This method deletes a template, specified by an index number, from the internal data structures of the DLL.
jboolean delTemplate(jint tIndex)
tIndex |
The index number of the template to be deleted |
true | Deletion succeeded |
true | Template at position tIndex does not exist |
CompareAll
This method runs the DTW algorithm, implemented in the DLL, against all stored templates.
jboolean CompareAll(jfloatarray oSeq, jint dmetrics, jint wwidth, jint sconstraint, jint seoffset)
oSeq |
An array containing the observation time-series in single precision floating point values. |
dmetrics |
The distance metrics to be used |
wwidth |
Warping window width |
sconstraint |
Reserved for future use |
seoffset |
Allowable start and end point offset |
true |
Comparison succeeded. |
false |
Comparison failed. |
CompareOne
This method runs the algorithm against a specified template and the observation.
jboolean CompareOne(jint tIndex, jfloatarray oSeq, jint dmetrics, jint wwidth, jint sconstraint, jint seoffset)
tIndex |
An integer number which specifies a single template. |
oSeq |
An array containing the observation time-series in single precision floating point values. |
dmetrics |
The distance metrics to be used |
wwidth |
Warping window width |
sconstraint |
Reserved for future use |
seoffset |
Allowable start and end point offset |
true |
Comparison succeeded. |
false |
Comparison failed. |
getResult_sortedIndex
This method returns the sorted results index from the last DTWWRAP.CompareAll()-call.
jint [] getResult_sortedIndex(void)
jint [] |
An array containing the indexes of the last comparison. |
getResult_dtwDistance
This method returns the DTW distance associated with a given template index.
jfloat getResult_dtwDistance(int tIndex)
tIndex |
An integer number which specifies a single template. |
jfloat |
The DTW distance between the specified template and the observation. |
getResult_PathX
This method returns the warping path's x-values from the last DTWWRAP.CompareOne()-call.
jint [] getResult_PathX(void)
jint [] |
An array containing the x-values from the last DTWWRAP.CompareOne()-call. |
getResult_PathY
This method returns the warping path's y-values from the last DTWWRAP.CompareOne()-call.
jint [] getResult_PathY(void)
jint [] |
An array containing the y-values from the last DTWWRAP.CompareOne()-call. |