Mercurial > hg > qm-dsp
diff hmm/hmm.c @ 189:e4a57215ddee
Fix compiler warnings with -Wall -Wextra
author | Chris Cannam |
---|---|
date | Mon, 28 Sep 2015 12:33:17 +0100 |
parents | e5907ae6de17 |
children | fdaa63607c15 |
line wrap: on
line diff
--- a/hmm/hmm.c Tue Sep 08 13:18:14 2015 +0100 +++ b/hmm/hmm.c Mon Sep 28 12:33:17 2015 +0100 @@ -264,19 +264,6 @@ free(gauss_z); } -void mlss_reestimate(double* p0, double** a, double** mu, double** cov, int N, int T, int L, int* q, double** x) -{ - /* fit a single Gaussian to observations in each state */ - - /* calculate the mean observation in each state */ - - /* calculate the overall covariance */ - - /* count transitions */ - - /* estimate initial probs from transitions (???) */ -} - void baum_welch(double* p0, double** a, double** mu, double** cov, int N, int T, int L, double** x, double*** xi, double** gamma) { int i, j, t; @@ -749,7 +736,7 @@ /* probability of multivariate Gaussian given mean, inverse and determinant of covariance */ double gauss(double* x, int L, double* mu, double** icov, double detcov, double* y, double* z) { - int i, j; + int i; double s = 0; for (i = 0; i < L; i++) y[i] = x[i] - mu[i]; @@ -770,7 +757,7 @@ /* log probability of multivariate Gaussian given mean, inverse and determinant of covariance */ double loggauss(double* x, int L, double* mu, double** icov, double detcov, double* y, double* z) { - int i, j; + int i; double s = 0; double ret; for (i = 0; i < L; i++)