Mercurial > hg > aimc
diff trunk/C++/CARParam.H @ 598:34dccba19c54
Fixed certain minor documentation bugs.
Added the CAR::designFilters and CAR::stageG methods. These methods design the CAR.coeff coefficients. They have been compared to be the same as the matlab coefficients.
An Ear is now contructed with a specific FS or, it uses the default.
Added the PsychoAcoustics class to do ERB and Hz conversions.
Added the EarTest.C main which allows the construction of an Ear class for testing.
author | flatmax |
---|---|
date | Wed, 20 Feb 2013 22:30:19 +0000 |
parents | 359bcd461dd1 |
children | 33c6f1921171 |
line wrap: on
line diff
--- a/trunk/C++/CARParam.H Sat Feb 09 23:53:48 2013 +0000 +++ b/trunk/C++/CARParam.H Wed Feb 20 22:30:19 2013 +0000 @@ -1,5 +1,5 @@ // Copyright 2013 Matt R. Flax <flatmax\@> All Rights Reserved. -// Author Matt Flax <flatmax\@> +// Author Matt Flax <flatmax@> // // This C++ file is part of an implementation of Lyon's cochlear model: // "Cascade of Asymmetric Resonators with Fast-Acting Compression" @@ -21,6 +21,9 @@ #include "Parameters.H" +class CAR; // required for decleration as a friend +class Ear; + /** \author {Matt Flax <flatmax\@>} \date 2013.02.08 @@ -48,6 +51,9 @@ FP_TYPE ERB_per_step_=0.5, FP_TYPE min_pole_Hz_=30., FP_TYPE ERB_break_freq_=165.3, FP_TYPE ERB_Q_=1000./(24.7*4.37)); virtual ~CARParam(); ///< Destructor + + friend class CAR; + friend class Ear; }; #endif // CARPARAMS_H_