annotate trunk/carfac/agc_params.h @ 620:9c268a806bf2

First version of a C++ implementation by Alex Brandmeyer
author alexbrandmeyer
date Mon, 13 May 2013 22:51:15 +0000
parents
children d763637a05c5
rev   line source
alexbrandmeyer@620 1 //
alexbrandmeyer@620 2 // agc_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_AGCParams_h
alexbrandmeyer@620 24 #define CARFAC_Open_Source_C__Library_AGCParams_h
alexbrandmeyer@620 25
alexbrandmeyer@620 26 #include "carfac_common.h"
alexbrandmeyer@620 27
alexbrandmeyer@620 28 class AGCParams {
alexbrandmeyer@620 29 public:
alexbrandmeyer@620 30 int n_stages_;
alexbrandmeyer@620 31 FPType agc_stage_gain_;
alexbrandmeyer@620 32 FPType agc_mix_coeff_;
alexbrandmeyer@620 33 FloatArray time_constants_;
alexbrandmeyer@620 34 FloatArray decimation_;
alexbrandmeyer@620 35 FloatArray agc1_scales_;
alexbrandmeyer@620 36 FloatArray agc2_scales_;
alexbrandmeyer@620 37
alexbrandmeyer@620 38
alexbrandmeyer@620 39 void OutputParams();
alexbrandmeyer@620 40 void SetParams(int ns, FPType agcsg,FPType agcmc, FloatArray tc,
alexbrandmeyer@620 41 FloatArray dec, FloatArray agc1sc, FloatArray agc2sc);
alexbrandmeyer@620 42 AGCParams();
alexbrandmeyer@620 43 };
alexbrandmeyer@620 44
alexbrandmeyer@620 45 #endif