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