annotate trunk/carfac/carfac_util.h @ 701:bf89b122a683

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