Mercurial > hg > aimc
view branches/carfac_cpp/src/IHC.cpp @ 665:d0ff15c36828
Turn the AGC coeffs inside out: array of structs instead of a struct of little arrays.
In C++ use a vector<AGC_coeffs> for this; each of 4 stages has an entry; many fewer places
need to do indexing by stage, and this removes the temptation to use little eigen arrays
for the 4 stages.
Also latest version of experimental log-lag SAI hacks.
author | dicklyon@google.com |
---|---|
date | Tue, 21 May 2013 04:24:05 +0000 |
parents | f3dde307f4b8 |
children |
line wrap: on
line source
#include "IHC.h" IHC_parameters::IHC_parameters(): tau_lpf_(0.000080), tau1_out_(0.010), tau1_in_(0.20), tau2_out_(0.0025), tau2_in_(0.005) { // do nothing more } IHC_coefficients::IHC_coefficients(IHC_parameters* IHC_params_p, float fs, int n_ch): saturation_output_(0.0) { // TODO stuff! }