search for: emddist

Displaying 1 result from an estimated 1 matches for "emddist".

Did you mean: ecodist
2008 Nov 19
1
C++ code from R
...--------------- // emdL1_R.cc: #include <time.h> #include <stdio.h> #include "emdL1.h" extern "C" { void emd_L1( double *H1, int *n1, double *H2, int *n2, int *Dims, double *e ) { EmdL1 em; // EMD_L1 class e[0] = em.EmdDist( H1,H2, n1[0],n2[0], Dims[0]); // 2D EMD_L1 printf("For 2D histograms, EmdL1(h1,h2)=%lf\n", e[0]); } }// extern "C" ------------------- ------------------- Compilation started at Wed Nov 19 14:30:42 R CMD SHLIB emdL1.cpp emdL1_R.cc g++ -I/usr/share/R/include -fpi...