view branches/carfac_cpp/src/IHC.cpp @ 705:be2b68ced23d

Make the C++ SAI match the Matlab implementation. - Fix syntax error which caused a linear window to be used instead of the correct sine window. - Correct off-by-one indexing errors to compensate for 1-based indexing in Matlab. - Enable test to verify that the C++ output matches Matlab with high precision.
author ronw@google.com
date Tue, 16 Jul 2013 19:56:16 +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!
}