Mercurial > hg > aimc
diff carfac/ihc.h @ 646:e76951e4da20
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 | 8b70f4cf00c7 |
children |
line wrap: on
line diff
--- a/carfac/ihc.h Tue Jun 11 17:59:08 2013 +0000 +++ b/carfac/ihc.h Tue Jun 11 20:41:15 2013 +0000 @@ -25,6 +25,7 @@ #include "common.h" +// Inner hair cell (IHC) parameters, which are used to design the IHC filters. struct IHCParams { IHCParams() { just_half_wave_rectify = false; @@ -35,7 +36,8 @@ tau2_out = 0.0025; tau2_in = 0.005; ac_corner_hz = 20.0; - }; + } + bool just_half_wave_rectify; bool one_capacitor; FPType tau_lpf; @@ -46,6 +48,8 @@ FPType ac_corner_hz; }; +// Inner hair cell filter coefficients, which are derived from a set of +// IHCParams. struct IHCCoeffs { bool just_half_wave_rectify; bool one_capacitor; @@ -63,6 +67,7 @@ FPType cap2_voltage; }; +// Inner hair cell filter state. struct IHCState { ArrayX ihc_out; ArrayX ihc_accum; @@ -73,4 +78,4 @@ ArrayX ac_coupler; }; -#endif // CARFAC_IHC_H \ No newline at end of file +#endif // CARFAC_IHC_H