Next: Internal data structures of
Up: Detailed information
Previous: Internal data structures for
  Contents
DTWDLLApi.addTemplate
- Call method DTWWRAP.addTemplate with argument
vec
which
is an array of single-precision floating point numbers.
- Return the index number returned from the DTWWRAP module to the caller.
DTWDLLApi.getTemplate
- Call method DTWWRAP.getTemplate with argument
tIndex
which
is an integer number that specifies a single template in the DLL.
- Return the array of single-precision floating point numbers returned
by DTWWRAP.getTemplate to the caller.
DTWDLLApi.delTemplate
- Call method DTWWRAP.delTemplate with argument
tIndex
which
is an integer number that specifies a single template in the DLL.
- Return either
true
or false
to the caller, depending on the
result from the operation.
DTWDLLApi.CompareAll
- Create an integer array
DTWparams[]
of length four
- Move algorithm parameters from the DTWParameters object received
as a parameter to
DTWparams[]
.
- Call method DTWWRAP.CompareAll with arguments
oSeq
and DTWparams[]
.
- If DTWWRAP.CompareAll returned
true
,
- create an array
all_res_elements
for storing DTWAllResultsElement objects
- call method DTWWRAP.getResult_sortedIndex and store the returned
integer array into
res_array
.
- Iterate through the elements in
res_array
, calling
DTWWRAP.getResult_dtwDistance for each element and create an
instance of DTWAllResultsElement with the returned value and the
index number. Add the new DTWAllResultsElement to
all_res_elements
.
- Return the finished
all_res_elements
array to the caller.
- If DTWWRAP.CompareAll returned
false
, return
null
to the caller.
DTWDLLApi.CompareOne
- Create an integer array
DTWparams[]
of length four
- Move algorithm parameters from the DTWParameters object received
as a parameter to
DTWparams[]
.
- Call method DTWWRAP.CompareOne with arguments
tIndex
, oSeq
and DTWparams[]
.
- If DTWWRAP.CompareOne returned
true
,
- call DTWWRAP.getResult_PathX and store the returned integer array into
res_arr_pathx
.
- call DTWWRAP.getResult_PathY and store the returned integer array into
res_arr_pathy
.
- create an array
res_arr_pathxy
, length of two.
- store
res_arr_pathx
and res_arr_pathy
in res_arr_pathxy
.
- call DTWWRAP.getResult_dtwDistance and store the returned floating point number into
res_dtwDistance
.
- create an DTWOneResult object with values stored in
res_arr_pathxy
and res_dtwDistance
.
- return the created DTWOneResult object to the caller.
- If DTWWRAP.CompareOne returned
false
, return
null
to the caller.
Next: Internal data structures of
Up: Detailed information
Previous: Internal data structures for
  Contents
2002-03-19