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