diff hmm/hmm.c @ 414:7e8d1f26b098

Fix compiler warnings with -Wall -Wextra
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 28 Sep 2015 12:33:17 +0100
parents d5014ab8b0e5
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++)