Mercurial > hg > qm-dsp
comparison dsp/segmentation/cluster_melt.h @ 18:8e90a56b4b5f
* merge in segmentation code from soundbite plugin/library repository
author | cannam |
---|---|
date | Wed, 09 Jan 2008 10:46:25 +0000 |
parents | |
children | 8bdbda7fb893 |
comparison
equal
deleted
inserted
replaced
17:a120ac7b26b2 | 18:8e90a56b4b5f |
---|---|
1 #ifndef _CLUSTER_MELT_H | |
2 #define _CLUSTER_MELT_H | |
3 /* | |
4 * cluster_melt.h | |
5 * cluster_melt | |
6 * | |
7 * Created by Mark Levy on 21/02/2006. | |
8 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. All rights reserved. | |
9 * | |
10 */ | |
11 | |
12 #include <stdlib.h> | |
13 #include <math.h> | |
14 | |
15 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */ | |
16 int m, /* number of dimensions (i.e. histogram bins) */ | |
17 int n, /* number of histograms */ | |
18 double *Bsched, /* inverse temperature schedule */ | |
19 int t, /* length of schedule */ | |
20 int k, /* number of clusters */ | |
21 int l, /* neighbourhood limit (supply zero to use default value) */ | |
22 int *c /* sequence of cluster assignments */ | |
23 ); | |
24 | |
25 #endif |