diff matlab/bmm/carfac/CARFAC_Design.m @ 498:056df17e0898

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 69955736f586
children 3c0c248e10bf
line wrap: on
line diff
--- a/matlab/bmm/carfac/CARFAC_Design.m	Mon Apr 09 06:15:05 2012 +0000
+++ b/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