comparison dsp/segmentation/cluster_melt.c @ 481:de5f557a270f

Fix typo
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 31 May 2019 10:54:02 +0100
parents 175e51ae78eb
children d48276a3ae24
comparison
equal deleted inserted replaced
480:175e51ae78eb 481:de5f557a270f
144 sum += exp(lp[i][j]); 144 sum += exp(lp[i][j]);
145 } 145 }
146 146
147 /* normalise responsibilities and add duration logprior */ 147 /* normalise responsibilities and add duration logprior */
148 logsumexp = log(sum); 148 logsumexp = log(sum);
149 for (j = 0; j < k; j++) {a 149 for (j = 0; j < k; j++) {
150 lp[i][j] -= logsumexp + lambda * nc[i][j]; 150 lp[i][j] -= logsumexp + lambda * nc[i][j];
151 } 151 }
152 } 152 }
153 153
154 /* update the assignments now that we know the duration priors 154 /* update the assignments now that we know the duration priors