alexbrandmeyer@643: // alexbrandmeyer@643: // carfac_util.h alexbrandmeyer@643: // CARFAC Open Source C++ Library alexbrandmeyer@643: // alexbrandmeyer@643: // Created by Alex Brandmeyer on 5/10/13. alexbrandmeyer@643: // alexbrandmeyer@643: // This C++ file is part of an implementation of Lyon's cochlear model: alexbrandmeyer@643: // "Cascade of Asymmetric Resonators with Fast-Acting Compression" alexbrandmeyer@643: // to supplement Lyon's upcoming book "Human and Machine Hearing" alexbrandmeyer@643: // alexbrandmeyer@643: // Licensed under the Apache License, Version 2.0 (the "License"); alexbrandmeyer@643: // you may not use this file except in compliance with the License. alexbrandmeyer@643: // You may obtain a copy of the License at alexbrandmeyer@643: // alexbrandmeyer@643: // http://www.apache.org/licenses/LICENSE-2.0 alexbrandmeyer@643: // alexbrandmeyer@643: // Unless required by applicable law or agreed to in writing, software alexbrandmeyer@643: // distributed under the License is distributed on an "AS IS" BASIS, alexbrandmeyer@643: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. alexbrandmeyer@643: // See the License for the specific language governing permissions and alexbrandmeyer@643: // limitations under the License. alexbrandmeyer@643: alexbrandmeyer@643: #ifndef CARFAC_CARFAC_UTIL_H alexbrandmeyer@643: #define CARFAC_CARFAC_UTIL_H alexbrandmeyer@643: alexbrandmeyer@643: #include "common.h" alexbrandmeyer@643: ronw@646: // Returns the IHC detection nonilnearity function of the filter output values. ronw@646: // This is here because it is called both in design and run phases. alexbrandmeyer@643: ArrayX CARFACDetect(const ArrayX& x); alexbrandmeyer@643: ronw@646: #endif // CARFAC_CARFAC_UTIL_H