annotate trunk/carfac/carfac_util.h @ 688:e50aee5046b1

Style fixes. - Fix most lint errors found by http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py - Clean up commenting style. - Alphabetize #includes and using statements.
author ronw@google.com
date Tue, 11 Jun 2013 20:41:15 +0000
parents d0612798f6de
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