Mercurial > hg > aimc
diff trunk/matlab/bmm/carfac/CARFAC_Design.m @ 559:89b1fe5de60f
Simplify AGC_Step, moving multi-aural cross coupling to new function CARFAC_Cross_Couple
author | dicklyon@google.com |
---|---|
date | Tue, 10 Apr 2012 05:40:18 +0000 |
parents | 910efa18d8f5 |
children | ab7fabe2af5d |
line wrap: on
line diff
--- a/trunk/matlab/bmm/carfac/CARFAC_Design.m Mon Apr 09 13:22:28 2012 +0000 +++ b/trunk/matlab/bmm/carfac/CARFAC_Design.m Tue Apr 10 05:40:18 2012 +0000 @@ -151,6 +151,8 @@ 'v_damp_max', CAR_params.v_damp_max ... ); +% don't really need these zero arrays, but it's a clue to what fields +% and types are need in ohter language implementations: CAR_coeffs.r1_coeffs = zeros(n_ch, 1); CAR_coeffs.a0_coeffs = zeros(n_ch, 1); CAR_coeffs.c0_coeffs = zeros(n_ch, 1); @@ -213,7 +215,7 @@ 'AGC_stage_gain', AGC_params.AGC_stage_gain); % AGC1 pass is smoothing from base toward apex; -% AGC2 pass is back, which is done first now +% AGC2 pass is back, which is done first now (in double exp. version) AGC1_scales = AGC_params.AGC1_scales; AGC2_scales = AGC_params.AGC2_scales; @@ -294,7 +296,6 @@ % adjust the detect_scale by the total DC gain of the AGC filters: AGC_coeffs.detect_scale = AGC_params.detect_scale / total_DC_gain; - % % print some results AGC_coeffs AGC_spatial_FIR = AGC_coeffs.AGC_spatial_FIR