Mercurial > hg > aimc
annotate trunk/carfac/ihc_state.h @ 682:10dc41e4d2f2
More small style revisions to C++ CARFAC, adjusted struct member variable naming, header guards and #include structure.
author | alexbrandmeyer |
---|---|
date | Wed, 29 May 2013 15:37:28 +0000 |
parents | 7f424c1a8b78 |
children |
rev | line source |
---|---|
alexbrandmeyer@620 | 1 // |
alexbrandmeyer@620 | 2 // ihc_state.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@682 | 23 #ifndef CARFAC_IHC_STATE_H |
alexbrandmeyer@682 | 24 #define CARFAC_IHC_STATE_H |
alexbrandmeyer@620 | 25 |
alexbrandmeyer@682 | 26 #include "carfac_common.h" |
alexbrandmeyer@620 | 27 |
alexbrandmeyer@621 | 28 struct IHCState { |
alexbrandmeyer@682 | 29 FloatArray ihc_out; |
alexbrandmeyer@682 | 30 FloatArray ihc_accum; |
alexbrandmeyer@682 | 31 FloatArray cap1_voltage; |
alexbrandmeyer@682 | 32 FloatArray cap2_voltage; |
alexbrandmeyer@682 | 33 FloatArray lpf1_state; |
alexbrandmeyer@682 | 34 FloatArray lpf2_state; |
alexbrandmeyer@682 | 35 FloatArray ac_coupler; |
alexbrandmeyer@620 | 36 }; |
alexbrandmeyer@620 | 37 |
alexbrandmeyer@682 | 38 #endif // CARFAC_IHC_STATE_H |