annotate trunk/carfac/ihc_params.h @ 679:594b410c2aed

Sixth revision of Alex Brandmeyer's C++ implementation. Only small changes in response to Lyon's comments from r285. Note: I tried to use a consistent indentation with two spaces, but also preserving parenthetical structure to make reading the longer equations easier. Please advise if this is OK. Additional documentation and tests with non-standard parameter sets will be added in a subsequent revision.
author alexbrandmeyer
date Tue, 28 May 2013 15:54:54 +0000
parents 7f424c1a8b78
children 10dc41e4d2f2
rev   line source
alexbrandmeyer@620 1 //
alexbrandmeyer@620 2 // ihc_params.h
alexbrandmeyer@620 3 // CARFAC Open Source C++ Library
alexbrandmeyer@620 4 //
alexbrandmeyer@620 5 // Created by Alex Brandmeyer on 5/10/13.
alexbrandmeyer@620 6 //
alexbrandmeyer@620 7 // This C++ file is part of an implementation of Lyon's cochlear model:
alexbrandmeyer@620 8 // "Cascade of Asymmetric Resonators with Fast-Acting Compression"
alexbrandmeyer@620 9 // to supplement Lyon's upcoming book "Human and Machine Hearing"
alexbrandmeyer@620 10 //
alexbrandmeyer@620 11 // Licensed under the Apache License, Version 2.0 (the "License");
alexbrandmeyer@620 12 // you may not use this file except in compliance with the License.
alexbrandmeyer@620 13 // You may obtain a copy of the License at
alexbrandmeyer@620 14 //
alexbrandmeyer@620 15 // http://www.apache.org/licenses/LICENSE-2.0
alexbrandmeyer@620 16 //
alexbrandmeyer@620 17 // Unless required by applicable law or agreed to in writing, software
alexbrandmeyer@620 18 // distributed under the License is distributed on an "AS IS" BASIS,
alexbrandmeyer@620 19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
alexbrandmeyer@620 20 // See the License for the specific language governing permissions and
alexbrandmeyer@620 21 // limitations under the License.
alexbrandmeyer@620 22
alexbrandmeyer@620 23 #ifndef CARFAC_Open_Source_C__Library_IHCParams_h
alexbrandmeyer@620 24 #define CARFAC_Open_Source_C__Library_IHCParams_h
alexbrandmeyer@620 25
alexbrandmeyer@620 26 #include "carfac_common.h"
alexbrandmeyer@620 27
alexbrandmeyer@621 28 struct IHCParams {
alexbrandmeyer@679 29 IHCParams() {
alexbrandmeyer@679 30 just_half_wave_rectify_ = false;
alexbrandmeyer@679 31 one_capacitor_ = true;
alexbrandmeyer@679 32 tau_lpf_ = 0.000080;
alexbrandmeyer@679 33 tau1_out_ = 0.0005;
alexbrandmeyer@679 34 tau1_in_ = 0.010;
alexbrandmeyer@679 35 tau2_out_ = 0.0025;
alexbrandmeyer@679 36 tau2_in_ = 0.005;
alexbrandmeyer@679 37 ac_corner_hz_ = 20.0;
alexbrandmeyer@679 38 };
alexbrandmeyer@678 39 bool just_half_wave_rectify_;
alexbrandmeyer@678 40 bool one_capacitor_;
alexbrandmeyer@620 41 FPType tau_lpf_;
alexbrandmeyer@620 42 FPType tau1_out_;
alexbrandmeyer@620 43 FPType tau1_in_;
alexbrandmeyer@620 44 FPType tau2_out_;
alexbrandmeyer@620 45 FPType tau2_in_;
alexbrandmeyer@620 46 FPType ac_corner_hz_;
alexbrandmeyer@620 47 };
alexbrandmeyer@620 48
alexbrandmeyer@621 49 #endif