annotate 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
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.
cannam@18 8 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. All rights reserved.
cannam@18 9 *
cannam@18 10 */
cannam@18 11
cannam@18 12 #include <stdlib.h>
cannam@18 13 #include <math.h>
cannam@18 14
cannam@18 15 void cluster_melt(double *h, /* normalised histograms, as a vector in row major order */
cannam@18 16 int m, /* number of dimensions (i.e. histogram bins) */
cannam@18 17 int n, /* number of histograms */
cannam@18 18 double *Bsched, /* inverse temperature schedule */
cannam@18 19 int t, /* length of schedule */
cannam@18 20 int k, /* number of clusters */
cannam@18 21 int l, /* neighbourhood limit (supply zero to use default value) */
cannam@18 22 int *c /* sequence of cluster assignments */
cannam@18 23 );
cannam@18 24
cannam@18 25 #endif