add queen mary DSP library
[ardour2.git] / libs / qm-dsp / dsp / segmentation / cluster_melt.h
blob9bb9106a286ce28cf2d62cdce9573cf561b52b68
1 #ifndef _CLUSTER_MELT_H
2 #define _CLUSTER_MELT_H
3 /*
4 * cluster_melt.h
5 * cluster_melt
7 * Created by Mark Levy on 21/02/2006.
8 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2 of the
13 License, or (at your option) any later version. See the file
14 COPYING included with this distribution for more information.
18 #include <stdlib.h>
19 #include <math.h>
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 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 n, /* number of histograms */
28 double *Bsched, /* inverse temperature schedule */
29 int t, /* length of schedule */
30 int k, /* number of clusters */
31 int l, /* neighbourhood limit (supply zero to use default value) */
32 int *c /* sequence of cluster assignments */
35 #ifdef __cplusplus
37 #endif
39 #endif