comparison matlab/bmm/carfac/CARFAC_Init.m @ 504:a0869cb1c99b

Major update to how the DOHC works; like in recent book OHC chapter; Design Doc update (a bit)
author dicklyon@google.com
date Thu, 24 May 2012 22:26:56 +0000
parents 896620d9d539
children 03c642677954
comparison
equal deleted inserted replaced
502:37c007925536 504:a0869cb1c99b
65 if coeffs.one_cap 65 if coeffs.one_cap
66 state = struct( ... 66 state = struct( ...
67 'ihc_accum', zeros(n_ch, 1), ... 67 'ihc_accum', zeros(n_ch, 1), ...
68 'cap_voltage', coeffs.rest_cap * ones(n_ch, 1), ... 68 'cap_voltage', coeffs.rest_cap * ones(n_ch, 1), ...
69 'lpf1_state', coeffs.rest_output * ones(n_ch, 1), ... 69 'lpf1_state', coeffs.rest_output * ones(n_ch, 1), ...
70 'lpf2_state', coeffs.rest_output * ones(n_ch, 1) ... 70 'lpf2_state', coeffs.rest_output * ones(n_ch, 1), ...
71 'ac_coupler', zeros(n_ch, 1) ...
71 ); 72 );
72 else 73 else
73 state = struct( ... 74 state = struct( ...
74 'ihc_accum', zeros(n_ch, 1), ... 75 'ihc_accum', zeros(n_ch, 1), ...
75 'cap1_voltage', coeffs.rest_cap1 * ones(n_ch, 1), ... 76 'cap1_voltage', coeffs.rest_cap1 * ones(n_ch, 1), ...
76 'cap2_voltage', coeffs.rest_cap2* ones(n_ch, 1), ... 77 'cap2_voltage', coeffs.rest_cap2* ones(n_ch, 1), ...
77 'lpf1_state', coeffs.rest_output * ones(n_ch, 1), ... 78 'lpf1_state', coeffs.rest_output * ones(n_ch, 1), ...
78 'lpf2_state', coeffs.rest_output * ones(n_ch, 1) ... 79 'lpf2_state', coeffs.rest_output * ones(n_ch, 1), ...
80 'ac_coupler', zeros(n_ch, 1) ...
79 ); 81 );
80 end 82 end
81 end 83 end
82 84
83 85