Functions

matlab/mex/dtwpath.c File Reference

Matlab wrapper for dynamic time warping. More...

#include "mex.h"
#include "mex_utils.h"
#include <stdlib.h>
#include "array.h"
#include "distances.h"

Go to the source code of this file.

Functions

void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])

Detailed Description

Matlab wrapper for dynamic time warping.

The script can be used to calculate the warping-path for either a given distance matrix between individual points in two signals, or by giving the (potential multidimensional) signals directly.

It returns the warping path (that is corresponding elements in both series as a 2 x M integer-array).

The MATLAB-interface is as follows:

[ path ] = dtwpath( s1, s2 ); s1 and s2 are matrices or vectors giving the signals to be warped.

[ path ] = dtwpath( s1, s2, metric ); s1 and s2 are matrices or vectors giving the signals to be warped. metric is a string giving the distance metric.

Todo:
implement this!

[ path ] = dtwpath( distmat ); distmat is the n x n pointwise distance matrix between signal points.

Definition in file dtwpath.c.


Function Documentation

void mexFunction ( int  nlhs,
mxArray *  plhs[],
int  nrhs,
const mxArray *  prhs[] 
)

Definition at line 34 of file dtwpath.c.