GPLIB++
WienerFilter.h
Go to the documentation of this file.
1 #ifndef CWIENERFILTER_H_
2 #define CWIENERFILTER_H_
3 
4 #include "AdaptiveFilter.h"
5 #include "VecMat.h"
6 
7 namespace gplib
8  {
9 
10  /** \addtogroup sigproc Signal processing methods */
11  /* @{ */
12  //! This class is currently broken !!!!!
14  {
15  private:
16  gplib::rmat CorrMatrix;
17  gplib::rvec Weights;
18  double lambda;
19  public:
20  virtual void PrintWeights(std::ostream &output);
21  virtual void
22  AdaptFilter(const gplib::rvec &Input, const gplib::rvec &Desired);
23  virtual void CalcOutput(const gplib::rvec &Input, gplib::rvec &Output);
24  void SetLambda(const double mylambda)
25  {
26  lambda = mylambda;
27  }
28  WienerFilter(const int inputsize);
29  virtual ~WienerFilter();
30  };
31  /* @} */
32  }
33 #endif /*CWIENERFILTER_H_*/
void SetLambda(const double mylambda)
Definition: WienerFilter.h:24
virtual void PrintWeights(std::ostream &output)
Print the current set of weights to the output stream, has to be implemented in derived class...
virtual void AdaptFilter(const gplib::rvec &Input, const gplib::rvec &Desired)
Adapt the filter weights given the Input and Desired vectors.
This class is currently broken !!!!!
Definition: WienerFilter.h:13
A generic base class for all types of adaptive filters.
WienerFilter(const int inputsize)
virtual void CalcOutput(const gplib::rvec &Input, gplib::rvec &Output)
Calculate the filter output given Input.