annotate carfac/carfac_util.h @ 643:8b70f4cf00c7

Additional changes to C++ CARFAC on the basis of ronw's comments on r289. Moved CARFAC::Design to CARFAC::CARFAC and CARFAC::Reset(), moved carfac_common.h to common.h, CARFACDetect to carfac_util.h/cc, FloatArray and Float2dArray to ArrayX and ArrayXX, improved variable naming, made a start on improved commenting documentation.
author alexbrandmeyer
date Tue, 04 Jun 2013 18:30:22 +0000
parents
children e76951e4da20
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
alexbrandmeyer@643 28 // Function CARFACDetect
alexbrandmeyer@643 29 // This returns the IHC detection nonilnearity function of the filter output
alexbrandmeyer@643 30 // values. This is here because it is called both in design and run phases.
alexbrandmeyer@643 31 ArrayX CARFACDetect(const ArrayX& x);
alexbrandmeyer@643 32
alexbrandmeyer@643 33 #endif // CARFAC_CARFAC_UTIL_H