Mercurial > hg > qm-dsp
annotate dsp/segmentation/cluster_melt.h @ 171:5f720340b0dd
Further debug out option
author | Chris Cannam |
---|---|
date | Sat, 10 May 2014 13:40:44 +0100 |
parents | e5907ae6de17 |
children | 175e51ae78eb |
rev | line source |
---|---|
cannam@18 | 1 #ifndef _CLUSTER_MELT_H |
cannam@18 | 2 #define _CLUSTER_MELT_H |
cannam@18 | 3 /* |
cannam@18 | 4 * cluster_melt.h |
cannam@18 | 5 * cluster_melt |
cannam@18 | 6 * |
cannam@18 | 7 * Created by Mark Levy on 21/02/2006. |
Chris@84 | 8 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. |
Chris@84 | 9 |
Chris@84 | 10 This program is free software; you can redistribute it and/or |
Chris@84 | 11 modify it under the terms of the GNU General Public License as |
Chris@84 | 12 published by the Free Software Foundation; either version 2 of the |
Chris@84 | 13 License, or (at your option) any later version. See the file |
Chris@84 | 14 COPYING included with this distribution for more information. |
cannam@18 | 15 * |
cannam@18 | 16 */ |
cannam@18 | 17 |
cannam@18 | 18 #include <stdlib.h> |
cannam@18 | 19 #include <math.h> |
cannam@18 | 20 |
cannam@20 | 21 #ifdef __cplusplus |
cannam@20 | 22 extern "C" { |
cannam@20 | 23 #endif |
cannam@20 | 24 |
cannam@18 | 25 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ |
cannam@18 | 26 int m, /* number of dimensions (i.e. histogram bins) */ |
cannam@18 | 27 int n, /* number of histograms */ |
cannam@18 | 28 double *Bsched, /* inverse temperature schedule */ |
cannam@18 | 29 int t, /* length of schedule */ |
cannam@18 | 30 int k, /* number of clusters */ |
cannam@18 | 31 int l, /* neighbourhood limit (supply zero to use default value) */ |
cannam@18 | 32 int *c /* sequence of cluster assignments */ |
cannam@18 | 33 ); |
cannam@18 | 34 |
cannam@20 | 35 #ifdef __cplusplus |
cannam@20 | 36 } |
cannam@20 | 37 #endif |
cannam@20 | 38 |
cannam@20 | 39 #endif |