c@243: /* c@243: * cluster_melt.h c@243: * cluster_melt c@243: * c@243: * Created by Mark Levy on 21/02/2006. c@309: * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. c@309: c@309: This program is free software; you can redistribute it and/or c@309: modify it under the terms of the GNU General Public License as c@309: published by the Free Software Foundation; either version 2 of the c@309: License, or (at your option) any later version. See the file c@309: COPYING included with this distribution for more information. c@243: * c@243: */ c@243: cannam@480: #ifndef _CLUSTER_MELT_H cannam@480: #define _CLUSTER_MELT_H cannam@480: c@243: #include c@243: #include c@243: c@245: #ifdef __cplusplus c@245: extern "C" { c@245: #endif c@245: cannam@480: void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ cannam@480: int m, /* number of dimensions (i.e. histogram bins) */ cannam@480: int n, /* number of histograms */ cannam@480: double *Bsched, /* inverse temperature schedule */ cannam@480: int t, /* length of schedule */ cannam@480: int k, /* number of clusters */ cannam@480: int l, /* neighbourhood limit (supply zero to use default value) */ cannam@480: int *c /* sequence of cluster assignments */ cannam@480: ); c@243: c@245: #ifdef __cplusplus c@245: } c@245: #endif c@245: c@245: #endif