From 4309b28c2c0ac34a89db70934a4c6f2712792a0f Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 19 Jul 2012 14:59:00 +1000 Subject: [PATCH] Fix the Gaussian smoothing calculation r3657 | dcl | 2012-07-19 14:59:00 +1000 (Thu, 19 Jul 2012) | 1 line --- fitcenter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fitcenter.c b/fitcenter.c index dd73573e..cb2b9a9e 100644 --- a/fitcenter.c +++ b/fitcenter.c @@ -93,9 +93,9 @@ float ggf2[] = {0.1429, 0.1429, 0.1429, 0.1429, 0.1429, 0.1429, 0.1429}; // lData[i] = pData[i] * ggf1[ind]; for(int j=1; j<=ind; j++){ if((i-j)>0) - lData[i] = pData[i-j] * ggf1[ind-j]; + lData[i] += pData[i-j] * ggf1[ind-j]; if((i+j)