~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to libs/qm-dsp/dsp/segmentation/cluster_melt.h

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
9
 
 
10
    This program is free software; you can redistribute it and/or
 
11
    modify it under the terms of the GNU General Public License as
 
12
    published by the Free Software Foundation; either version 2 of the
 
13
    License, or (at your option) any later version.  See the file
 
14
    COPYING included with this distribution for more information.
 
15
 *
 
16
 */
 
17
 
 
18
#include <stdlib.h>
 
19
#include <math.h>
 
20
 
 
21
#ifdef __cplusplus
 
22
extern "C" {
 
23
#endif
 
24
 
 
25
void cluster_melt(double *h,            /* normalised histograms, as a vector in row major order */
 
26
                                  int m,                        /* number of dimensions (i.e. histogram bins) */
 
27
                                  int n,                        /* number of histograms */
 
28
                                  double *Bsched,       /* inverse temperature schedule */
 
29
                                  int t,                        /* length of schedule */
 
30
                                  int k,                        /* number of clusters */
 
31
                                  int l,                        /* neighbourhood limit (supply zero to use default value) */
 
32
                                  int *c                        /* sequence of cluster assignments */
 
33
);
 
34
 
 
35
#ifdef __cplusplus
 
36
}
 
37
#endif
 
38
 
 
39
#endif