comparison dsp/segmentation/cluster_melt.h @ 20:8bdbda7fb893

* First cut at properly integrating the segmenter and making it work right
author cannam
date Wed, 09 Jan 2008 16:50:04 +0000
parents 8e90a56b4b5f
children e5907ae6de17
comparison
equal deleted inserted replaced
19:d3a856b44c43 20:8bdbda7fb893
10 */ 10 */
11 11
12 #include <stdlib.h> 12 #include <stdlib.h>
13 #include <math.h> 13 #include <math.h>
14 14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
15 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ 19 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */
16 int m, /* number of dimensions (i.e. histogram bins) */ 20 int m, /* number of dimensions (i.e. histogram bins) */
17 int n, /* number of histograms */ 21 int n, /* number of histograms */
18 double *Bsched, /* inverse temperature schedule */ 22 double *Bsched, /* inverse temperature schedule */
19 int t, /* length of schedule */ 23 int t, /* length of schedule */
20 int k, /* number of clusters */ 24 int k, /* number of clusters */
21 int l, /* neighbourhood limit (supply zero to use default value) */ 25 int l, /* neighbourhood limit (supply zero to use default value) */
22 int *c /* sequence of cluster assignments */ 26 int *c /* sequence of cluster assignments */
23 ); 27 );
24 28
29 #ifdef __cplusplus
30 }
25 #endif 31 #endif
32
33 #endif