cluster_melt.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 /*
3  * cluster_melt.h
4  * cluster_melt
5  *
6  * Created by Mark Levy on 21/02/2006.
7  * Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14  *
15  */
16 
17 #ifndef QM_DSP_CLUSTER_MELT_H
18 #define QM_DSP_CLUSTER_MELT_H
19 
20 #include <stdlib.h>
21 #include <math.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */
28  int m, /* number of dimensions (i.e. histogram bins) */
29  int n, /* number of histograms */
30  double *Bsched, /* inverse temperature schedule */
31  int t, /* length of schedule */
32  int k, /* number of clusters */
33  int l, /* neighbourhood limit (supply zero to use default value) */
34  int *c /* sequence of cluster assignments */
35  );
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
void cluster_melt(double *h, int m, int n, double *Bsched, int t, int k, int l, int *c)