comparison dsp/segmentation/cluster_melt.h @ 505:930b5b0f707d

Merge branch 'codestyle-and-tidy'
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 12:55:15 +0100
parents 701233f8ed41
children
comparison
equal deleted inserted replaced
471:e3335cb213da 505:930b5b0f707d
1 #ifndef _CLUSTER_MELT_H 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 #define _CLUSTER_MELT_H
3 /* 2 /*
4 * cluster_melt.h 3 * cluster_melt.h
5 * cluster_melt 4 * cluster_melt
6 * 5 *
7 * Created by Mark Levy on 21/02/2006. 6 * Created by Mark Levy on 21/02/2006.
13 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
14 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
15 * 14 *
16 */ 15 */
17 16
17 #ifndef QM_DSP_CLUSTER_MELT_H
18 #define QM_DSP_CLUSTER_MELT_H
19
18 #include <stdlib.h> 20 #include <stdlib.h>
19 #include <math.h> 21 #include <math.h>
20 22
21 #ifdef __cplusplus 23 #ifdef __cplusplus
22 extern "C" { 24 extern "C" {
23 #endif 25 #endif
24 26
25 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ 27 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */
26 int m, /* number of dimensions (i.e. histogram bins) */ 28 int m, /* number of dimensions (i.e. histogram bins) */
27 int n, /* number of histograms */ 29 int n, /* number of histograms */
28 double *Bsched, /* inverse temperature schedule */ 30 double *Bsched, /* inverse temperature schedule */
29 int t, /* length of schedule */ 31 int t, /* length of schedule */
30 int k, /* number of clusters */ 32 int k, /* number of clusters */
31 int l, /* neighbourhood limit (supply zero to use default value) */ 33 int l, /* neighbourhood limit (supply zero to use default value) */
32 int *c /* sequence of cluster assignments */ 34 int *c /* sequence of cluster assignments */
33 ); 35 );
34 36
35 #ifdef __cplusplus 37 #ifdef __cplusplus
36 } 38 }
37 #endif 39 #endif
38 40