Mercurial > hg > aimc
annotate carfac/carfac_util.h @ 662:7e18c84ca2b7
Small cleanup of eigen usage in SAI implementation.
author | ronw@google.com |
---|---|
date | Tue, 16 Jul 2013 19:56:11 +0000 |
parents | e76951e4da20 |
children |
rev | line source |
---|---|
alexbrandmeyer@643 | 1 // |
alexbrandmeyer@643 | 2 // carfac_util.h |
alexbrandmeyer@643 | 3 // CARFAC Open Source C++ Library |
alexbrandmeyer@643 | 4 // |
alexbrandmeyer@643 | 5 // Created by Alex Brandmeyer on 5/10/13. |
alexbrandmeyer@643 | 6 // |
alexbrandmeyer@643 | 7 // This C++ file is part of an implementation of Lyon's cochlear model: |
alexbrandmeyer@643 | 8 // "Cascade of Asymmetric Resonators with Fast-Acting Compression" |
alexbrandmeyer@643 | 9 // to supplement Lyon's upcoming book "Human and Machine Hearing" |
alexbrandmeyer@643 | 10 // |
alexbrandmeyer@643 | 11 // Licensed under the Apache License, Version 2.0 (the "License"); |
alexbrandmeyer@643 | 12 // you may not use this file except in compliance with the License. |
alexbrandmeyer@643 | 13 // You may obtain a copy of the License at |
alexbrandmeyer@643 | 14 // |
alexbrandmeyer@643 | 15 // http://www.apache.org/licenses/LICENSE-2.0 |
alexbrandmeyer@643 | 16 // |
alexbrandmeyer@643 | 17 // Unless required by applicable law or agreed to in writing, software |
alexbrandmeyer@643 | 18 // distributed under the License is distributed on an "AS IS" BASIS, |
alexbrandmeyer@643 | 19 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
alexbrandmeyer@643 | 20 // See the License for the specific language governing permissions and |
alexbrandmeyer@643 | 21 // limitations under the License. |
alexbrandmeyer@643 | 22 |
alexbrandmeyer@643 | 23 #ifndef CARFAC_CARFAC_UTIL_H |
alexbrandmeyer@643 | 24 #define CARFAC_CARFAC_UTIL_H |
alexbrandmeyer@643 | 25 |
alexbrandmeyer@643 | 26 #include "common.h" |
alexbrandmeyer@643 | 27 |
ronw@646 | 28 // Returns the IHC detection nonilnearity function of the filter output values. |
ronw@646 | 29 // This is here because it is called both in design and run phases. |
alexbrandmeyer@643 | 30 ArrayX CARFACDetect(const ArrayX& x); |
alexbrandmeyer@643 | 31 |
ronw@646 | 32 #endif // CARFAC_CARFAC_UTIL_H |