annotate C++/IHCParam.H @ 592:76c6b3fd0a05

First commit. Refer to the api [1] 'Philosophy of the implementation' for information on the approach used to implement CARFAC in C++. [1] aimc/C++/api/html/index.html
author flatmax
date Sat, 09 Feb 2013 23:53:48 +0000
parents
children 40934f897a56
rev   line source
flatmax@592 1 // Copyright 2013 Matt R. Flax <flatmax\@> All Rights Reserved.
flatmax@592 2 // Author Matt Flax <flatmax\@>
flatmax@592 3 //
flatmax@592 4 // This C++ file is part of an implementation of Lyon's cochlear model:
flatmax@592 5 // "Cascade of Asymmetric Resonators with Fast-Acting Compression"
flatmax@592 6 // to supplement Lyon's upcoming book "Human and Machine Hearing"
flatmax@592 7 //
flatmax@592 8 // Licensed under the Apache License, Version 2.0 (the "License");
flatmax@592 9 // you may not use this file except in compliance with the License.
flatmax@592 10 // You may obtain a copy of the License at
flatmax@592 11 //
flatmax@592 12 // http://www.apache.org/licenses/LICENSE-2.0
flatmax@592 13 //
flatmax@592 14 // Unless required by applicable law or agreed to in writing, software
flatmax@592 15 // distributed under the License is distributed on an "AS IS" BASIS,
flatmax@592 16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
flatmax@592 17 // See the License for the specific language governing permissions and
flatmax@592 18 // limitations under the License.
flatmax@592 19 #ifndef IHCPARAMS_H_
flatmax@592 20 #define IHCPARAMS_H_
flatmax@592 21
flatmax@592 22 #include "Parameters.H"
flatmax@592 23
flatmax@592 24 /**
flatmax@592 25 \author {Matt Flax <flatmax\@>}
flatmax@592 26 \date 2013.02.08
flatmax@592 27
flatmax@592 28 Parameters for the inner hair cells
flatmax@592 29 */
flatmax@592 30 class IHCParam : public Parameters {
flatmax@592 31 bool just_hwr; ///< not just a simple HWR
flatmax@592 32 FP_TYPE ac_corner_Hz; ///< Hz (the only param. used if just_hwr=true)
flatmax@592 33 bool one_cap; ///< 0 for new two-cap hack
flatmax@592 34 FP_TYPE tau_lpf; ///< 80 microseconds smoothing twice
flatmax@592 35 FP_TYPE tau_out; ///< depletion tau is pretty fast (used when one_cap=1)
flatmax@592 36 FP_TYPE tau_in; ///< recovery tau is slower (used when one_cap=1)
flatmax@592 37 FP_TYPE tau1_out; ///< depletion tau is pretty fast (used when one_cap=0)
flatmax@592 38 FP_TYPE tau1_in; ///< recovery tau is slower (used when one_cap=0)
flatmax@592 39 FP_TYPE tau2_out; ///< depletion tau is pretty fast (used when one_cap=0)
flatmax@592 40 FP_TYPE tau2_in; ///< recovery tau is slower (used when one_cap=0)
flatmax@592 41 public:
flatmax@592 42 IHCParam(bool just_hwr_=0, bool one_cap_=0, FP_TYPE tau_lpf_=0.000080,
flatmax@592 43 FP_TYPE tau_out_=0.0005, FP_TYPE tau_in_=0.010,
flatmax@592 44 FP_TYPE tau1_out_=0.010, FP_TYPE tau1_in_=0.020, FP_TYPE tau2_out_=0.0025,
flatmax@592 45 FP_TYPE tau2_in_=0.005, FP_TYPE ac_corner_Hz_=20.);
flatmax@592 46
flatmax@592 47 virtual ~IHCParam();
flatmax@592 48 };
flatmax@592 49
flatmax@592 50 #endif // IHCPARAMS_H_