view branches/carfac_cpp/src/IHC.h @ 554:d18ff10b5559

Adding code to AGC_coefficients(AGC_params*, float, int) Function FIR_coeffs as private function in class AGC_coefficients. FIR_coeffs returns a FloatArray and modify a boolean variable.
author pfh1976@gmail.com
date Sun, 08 Apr 2012 14:28:55 +0000
parents e63fbe19b255
children 0fde611fcd10
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() :
    tau_lpf_(0.000080),
    tau1_out_(0.020),
    tau1_in_(0.20),
    tau2_out_(0.005),
    tau2_in_(0.005){
    // do nothing more
  }

  virtual ~IHC_parameters(){
    // do nothing
  }

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

class IHC_coefficients{
public:
  IHC_coefficients(IHC_parameters*, float, int);
  virtual ~IHC_coefficients();

  float saturation_output_;

private:
  IHC_coefficients();
};

#endif /* IHC_H_ */