alexbrandmeyer@620: // alexbrandmeyer@620: // ihc_params.h alexbrandmeyer@620: // CARFAC Open Source C++ Library alexbrandmeyer@620: // alexbrandmeyer@620: // Created by Alex Brandmeyer on 5/10/13. alexbrandmeyer@620: // alexbrandmeyer@620: // This C++ file is part of an implementation of Lyon's cochlear model: alexbrandmeyer@620: // "Cascade of Asymmetric Resonators with Fast-Acting Compression" alexbrandmeyer@620: // to supplement Lyon's upcoming book "Human and Machine Hearing" alexbrandmeyer@620: // alexbrandmeyer@620: // Licensed under the Apache License, Version 2.0 (the "License"); alexbrandmeyer@620: // you may not use this file except in compliance with the License. alexbrandmeyer@620: // You may obtain a copy of the License at alexbrandmeyer@620: // alexbrandmeyer@620: // http://www.apache.org/licenses/LICENSE-2.0 alexbrandmeyer@620: // alexbrandmeyer@620: // Unless required by applicable law or agreed to in writing, software alexbrandmeyer@620: // distributed under the License is distributed on an "AS IS" BASIS, alexbrandmeyer@620: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. alexbrandmeyer@620: // See the License for the specific language governing permissions and alexbrandmeyer@620: // limitations under the License. alexbrandmeyer@620: alexbrandmeyer@620: #ifndef CARFAC_Open_Source_C__Library_IHCParams_h alexbrandmeyer@620: #define CARFAC_Open_Source_C__Library_IHCParams_h alexbrandmeyer@620: alexbrandmeyer@620: #include "carfac_common.h" alexbrandmeyer@620: alexbrandmeyer@620: class IHCParams { alexbrandmeyer@620: public: alexbrandmeyer@620: bool just_hwr_; alexbrandmeyer@620: bool one_cap_; alexbrandmeyer@620: FPType tau_lpf_; alexbrandmeyer@620: FPType tau1_out_; alexbrandmeyer@620: FPType tau1_in_; alexbrandmeyer@620: FPType tau2_out_; alexbrandmeyer@620: FPType tau2_in_; alexbrandmeyer@620: FPType ac_corner_hz_; alexbrandmeyer@620: alexbrandmeyer@620: IHCParams(); alexbrandmeyer@620: void OutputParams(); //Output current parameter values using std::cout alexbrandmeyer@620: void SetParams(bool jh, bool oc, FPType tlpf, FPType t1out, FPType t1in, alexbrandmeyer@620: FPType t2out, FPType t2in, FPType acchz);//Method to set non-default params alexbrandmeyer@620: }; alexbrandmeyer@620: alexbrandmeyer@620: #endif