mediaLib Library Functions mlibSignalDTWKVectorInitS16(3MLIB)
NAME
mlibSignalDTWKVectorInitS16 - initialization for K-best
paths of vector data
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibSignalDTWKVectorInitS16(void *state,
const mlibs16 **dref, mlibs32 lref, mlibs32 ndata,
mlibs32 kbest, mlibs32 dtype, mlibs32 sref,
mlibs32 delta, mlibs32 local, mlibs32 slope);
DESCRIPTION
The mlibSignalDTWKVectorInitS16() function initializes the
internal state structure for dynamic time warping (DTW) for
K-best paths of vector data.
The init function performs internal state structure alloca-
tion and global initialization. Per DTW function call ini-
tialization is done in DTW function, so the same internal
state structure can be reused for multiple DTW function
calls.
PARAMETERS
The function takes the following arguments:
dref The reference data array.
lref The length of the reference data array.
ndata The length of each data vector.
kbest The number of the best paths evaluated.
dtype The type of distance metric between data vectors.
MLIBDTWL1NORM for L1 norm of difference (sum of
absolute difference). MLIBDTWL2NORM for L2 norm
of difference (Euclidean distance).
sref The scaling factor of the reference data array,
where actualdata = inputdata * 2**(-
scalingfactor).
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibSignalDTWKVectorInitS16(3MLIB)
delta The delta in the endpoint constraints.
local The type of the local continuity constraints.
MLIBDTWITAKURA for Itakura type constraints.
slope The type of the slope weighting. MLIBDTWNONE for
no slope weighting.
state Pointer to the internal state structure.
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibSignalDTWKVectorInitS16(3MLIB),
mlibSignalDTWKVectorS16(3MLIB),
mlibSignalDTWKVectorPathS16(3MLIB),
mlibSignalDTWKVectorFreeS16(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|