annotate dsp/segmentation/cluster_melt.h @ 24:2b74bd60c61f
* Various fixes to segmentation code
author |
cannam |
date |
Thu, 10 Jan 2008 15:14:53 +0000 |
parents |
8bdbda7fb893 |
children |
e5907ae6de17 |
rev |
line source |
cannam@18
|
1 #ifndef _CLUSTER_MELT_H
|
cannam@18
|
2 #define _CLUSTER_MELT_H
|
cannam@18
|
3 /*
|
cannam@18
|
4 * cluster_melt.h
|
cannam@18
|
5 * cluster_melt
|
cannam@18
|
6 *
|
cannam@18
|
7 * Created by Mark Levy on 21/02/2006.
|
cannam@18
|
8 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. All rights reserved.
|
cannam@18
|
9 *
|
cannam@18
|
10 */
|
cannam@18
|
11
|
cannam@18
|
12 #include <stdlib.h>
|
cannam@18
|
13 #include <math.h>
|
cannam@18
|
14
|
cannam@20
|
15 #ifdef __cplusplus
|
cannam@20
|
16 extern "C" {
|
cannam@20
|
17 #endif
|
cannam@20
|
18
|
cannam@18
|
19 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */
|
cannam@18
|
20 int m, /* number of dimensions (i.e. histogram bins) */
|
cannam@18
|
21 int n, /* number of histograms */
|
cannam@18
|
22 double *Bsched, /* inverse temperature schedule */
|
cannam@18
|
23 int t, /* length of schedule */
|
cannam@18
|
24 int k, /* number of clusters */
|
cannam@18
|
25 int l, /* neighbourhood limit (supply zero to use default value) */
|
cannam@18
|
26 int *c /* sequence of cluster assignments */
|
cannam@18
|
27 );
|
cannam@18
|
28
|
cannam@20
|
29 #ifdef __cplusplus
|
cannam@20
|
30 }
|
cannam@20
|
31 #endif
|
cannam@20
|
32
|
cannam@20
|
33 #endif
|