Mercurial > hg > qm-dsp
comparison dsp/segmentation/cluster_melt.h @ 480:175e51ae78eb
Untabify, indent, tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 10:53:39 +0100 |
parents | d5014ab8b0e5 |
children | d48276a3ae24 |
comparison
equal
deleted
inserted
replaced
479:7e52c034cf62 | 480:175e51ae78eb |
---|---|
1 #ifndef _CLUSTER_MELT_H | |
2 #define _CLUSTER_MELT_H | |
3 /* | 1 /* |
4 * cluster_melt.h | 2 * cluster_melt.h |
5 * cluster_melt | 3 * cluster_melt |
6 * | 4 * |
7 * Created by Mark Levy on 21/02/2006. | 5 * Created by Mark Levy on 21/02/2006. |
13 License, or (at your option) any later version. See the file | 11 License, or (at your option) any later version. See the file |
14 COPYING included with this distribution for more information. | 12 COPYING included with this distribution for more information. |
15 * | 13 * |
16 */ | 14 */ |
17 | 15 |
16 #ifndef _CLUSTER_MELT_H | |
17 #define _CLUSTER_MELT_H | |
18 | |
18 #include <stdlib.h> | 19 #include <stdlib.h> |
19 #include <math.h> | 20 #include <math.h> |
20 | 21 |
21 #ifdef __cplusplus | 22 #ifdef __cplusplus |
22 extern "C" { | 23 extern "C" { |
23 #endif | 24 #endif |
24 | 25 |
25 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ | 26 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ |
26 int m, /* number of dimensions (i.e. histogram bins) */ | 27 int m, /* number of dimensions (i.e. histogram bins) */ |
27 int n, /* number of histograms */ | 28 int n, /* number of histograms */ |
28 double *Bsched, /* inverse temperature schedule */ | 29 double *Bsched, /* inverse temperature schedule */ |
29 int t, /* length of schedule */ | 30 int t, /* length of schedule */ |
30 int k, /* number of clusters */ | 31 int k, /* number of clusters */ |
31 int l, /* neighbourhood limit (supply zero to use default value) */ | 32 int l, /* neighbourhood limit (supply zero to use default value) */ |
32 int *c /* sequence of cluster assignments */ | 33 int *c /* sequence of cluster assignments */ |
33 ); | 34 ); |
34 | 35 |
35 #ifdef __cplusplus | 36 #ifdef __cplusplus |
36 } | 37 } |
37 #endif | 38 #endif |
38 | 39 |