view branches/carfac_cpp/include/IHC.h @ 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 057946a60b91
children
line wrap: on
line source
#ifndef IHC_H_
#define IHC_H_

// not sure how to best deal with the "three style" IHC - ulha
class IHC_parameters{
public:
  IHC_parameters();

  float tau_lpf_;
  float tau1_out_;
  float tau1_in_;
  float tau2_out_;
  float tau2_in_;
};

class IHC_coefficients{
public:
  IHC_coefficients(IHC_parameters* IHC_params_p, float fs, int n_ch);

  float saturation_output_;

private:

};

#endif /* IHC_H_ */