https://github.com/cran/dtw
Tip revision: 3bfd135a2e5da9055842a6a49c6de77648098e6d authored by Toni Giorgino on 17 June 2008, 00:00:00 UTC
version 1.12-3
version 1.12-3
Tip revision: 3bfd135
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 */
);