annotate dsp/segmentation/cluster_melt.h @ 495:1bea13b8f951

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