From f2ca5219a904fae17e9c744fe1a6d324527d5f56 Mon Sep 17 00:00:00 2001 From: ymherklotz Date: Mon, 19 Mar 2018 17:16:00 +0000 Subject: Fixing alphas --- Project/RTDSP/enhance.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Project/RTDSP/enhance.c') diff --git a/Project/RTDSP/enhance.c b/Project/RTDSP/enhance.c index 09b78d6..a5992ff 100644 --- a/Project/RTDSP/enhance.c +++ b/Project/RTDSP/enhance.c @@ -103,7 +103,7 @@ volatile int m_ptr = 0; float snr_val = 0; float total_snr = 0; float lambda = 0.05; -float alpha[NUM_ALPHA] = {300, 400, 600, 1000}; +float alpha[NUM_ALPHA] = {100, 50, 9, 1}; float avg = 0; float sum = 0; float *M[NUM_M]; @@ -267,7 +267,6 @@ void overestimation(void) { // Low pass filter X(w) void low_pass_filter(float* current, float* next) { int w; - float temp; for (w = 0; w < FFTLEN; ++w) { current[w] = (1-K)*current[w] + K*next[w]; next[w] = current[w]; -- cgit