https://github.com/cran/dtw
Tip revision: 47b430f6e116f153b5f406d88ce26f868027a447 authored by Toni Giorgino on 30 November 2007, 00:00:00 UTC
version 1.0-2
version 1.0-2
Tip revision: 47b430f
computeCM.h
/*
* Compute global cost matrix - companion
* to the dtw R package
* (c) Toni Giorgino 2007
* Distributed under GPL-2 with NO WARRANTY.
*
*/
int argmin(double *list, int n);
void computeCM( /* IN */
int *s, /* mtrx dimensions */
int *wm, /* windowing matrix */
double *lm, /* local cost mtrx */
int *nstepsp, /* no of steps in stepPattern */
double *dir, /* stepPattern description */
/* OUT */
double *cm, /* cost matrix */
int *sm /* direction mtrx */
);