Mercurial > hg > aimc
diff trunk/matlab/bmm/carfac/CARFAC_Run_Linear.m @ 530:fb60ea429bb8
reparameterize stage gain g and compressed damping with theta; interpolate g
author | dicklyon@google.com |
---|---|
date | Sun, 11 Mar 2012 00:31:57 +0000 |
parents | 741187dc780f |
children | 95a11cca4619 |
line wrap: on
line diff
--- a/trunk/matlab/bmm/carfac/CARFAC_Run_Linear.m Sat Mar 10 06:22:56 2012 +0000 +++ b/trunk/matlab/bmm/carfac/CARFAC_Run_Linear.m Sun Mar 11 00:31:57 2012 +0000 @@ -36,9 +36,12 @@ end for mic = 1:CF.n_mics - % for the state of the AGC interpolator: + % Set the state of damping, and prevent interpolation from there: CF.filter_state(mic).zB_memory(:) = extra_damping; % interpolator state CF.filter_state(mic).dzB_memory(:) = 0; % interpolator slope + CF.filter_state(mic).g_memory = CARFAC_Stage_g( ... + CF.filter_coeffs(mic), extra_damping); + CF.filter_state(mic).dg_memory(:) = 0; % interpolator slope end naps = zeros(n_samp, n_ch, n_mics);