qm-dsp
1.8
|
00001 #ifndef _CLUSTER_MELT_H 00002 #define _CLUSTER_MELT_H 00003 /* 00004 * cluster_melt.h 00005 * cluster_melt 00006 * 00007 * Created by Mark Levy on 21/02/2006. 00008 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. 00009 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License as 00012 published by the Free Software Foundation; either version 2 of the 00013 License, or (at your option) any later version. See the file 00014 COPYING included with this distribution for more information. 00015 * 00016 */ 00017 00018 #include <stdlib.h> 00019 #include <math.h> 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ 00026 int m, /* number of dimensions (i.e. histogram bins) */ 00027 int n, /* number of histograms */ 00028 double *Bsched, /* inverse temperature schedule */ 00029 int t, /* length of schedule */ 00030 int k, /* number of clusters */ 00031 int l, /* neighbourhood limit (supply zero to use default value) */ 00032 int *c /* sequence of cluster assignments */ 00033 ); 00034 00035 #ifdef __cplusplus 00036 } 00037 #endif 00038 00039 #endif