diff trunk/matlab/bmm/carfac/CARFAC_Transfer_Functions.m @ 534:95a11cca4619

Add CARFAC_Design_Doc.txt, CARFAC_Run_Segment.m, and some renames; rename various variables to be more parallel; clean up init code and such.
author dicklyon@google.com
date Fri, 16 Mar 2012 04:19:24 +0000
parents 55c46c01e522
children 3dff17554c6d
line wrap: on
line diff
--- a/trunk/matlab/bmm/carfac/CARFAC_Transfer_Functions.m	Mon Mar 12 06:14:53 2012 +0000
+++ b/trunk/matlab/bmm/carfac/CARFAC_Transfer_Functions.m	Fri Mar 16 04:19:24 2012 +0000
@@ -102,8 +102,8 @@
 % Return transfer functions of all stages as rational functions.
 
 n_ch = CF.n_ch;
-coeffs = CF.filter_coeffs;
-min_zeta = CF.filter_params.min_zeta;
+coeffs = CF.CAR_coeffs;
+min_zeta = CF.CAR_params.min_zeta;
 
 a0 = coeffs.a0_coeffs;
 c0 = coeffs.c0_coeffs;
@@ -111,8 +111,8 @@
 
 % get r, adapted if we have state:
 r =  coeffs.r1_coeffs;
-if isfield(CF, 'filter_state')
-  state = CF.filter_state;
+if isfield(CF, 'CAR_state')
+  state = CF.CAR_state;
   zB = state.zB_memory; % current extra damping
   r = r - zr .* zB;
 else