Mercurial > hg > qm-dsp
diff dsp/segmentation/cluster_melt.c @ 189:e4a57215ddee
Fix compiler warnings with -Wall -Wextra
author | Chris Cannam |
---|---|
date | Mon, 28 Sep 2015 12:33:17 +0100 |
parents | e5907ae6de17 |
children | 175e51ae78eb |
line wrap: on
line diff
--- a/dsp/segmentation/cluster_melt.c Tue Sep 08 13:18:14 2015 +0100 +++ b/dsp/segmentation/cluster_melt.c Mon Sep 28 12:33:17 2015 +0100 @@ -43,7 +43,7 @@ void cluster_melt(double *h, int m, int n, double *Bsched, int t, int k, int l, int *c) { double lambda, sum, beta, logsumexp, maxlp; - int i, j, a, b, b0, b1, limit, B, it, maxiter, maxiter0, maxiter1; + int i, j, a, b, b0, b1, limit, /* B, */ it, maxiter, maxiter0, maxiter1; double** cl; /* reference histograms for each cluster */ int** nc; /* neighbour counts for each histogram */ double** lp; /* soft assignment probs for each histogram */ @@ -57,7 +57,7 @@ limit = l; else limit = DEFAULT_LIMIT; /* use default if no valid neighbourhood limit supplied */ - B = 2 * limit + 1; +// B = 2 * limit + 1; maxiter0 = 20; /* number of iterations at initial temperature */ maxiter1 = 5; /* number of iterations at subsequent temperatures */