GPLIB++
LMSCanceller.h
Go to the documentation of this file.
1 /** \addtogroup sigproc Signal processing methods */
2 /* @{ */
3 
4 #ifndef LMSCANCELLER_H
5 #define LMSCANCELLER_H
6 
7 #include "types.h"
8 #include "LSSOFilter.h"
9 
10 namespace gplib
11  {
12  //! Implements a LMS adaptive filter
13  /*!*********************************************
14  * LMSCanceller implements the Normalized Adaptive LMS Filter
15  * as described in Haykin, p. 324 , it only supports a single
16  * output channel an mutliple input channels have to be concatenated
17  * at the input side
18  */
19  class LMSCanceller: public LSSOFilter
20  {
21  private:
22  double mu;
23  public:
24  void SetMu(const double Mymu)
25  {
26  mu = Mymu;
27  }
28  virtual void
29  AdaptFilter(const gplib::rvec &Input, const gplib::rvec &Desired);
30  LMSCanceller(const int inputsize);
31  LMSCanceller(const int inputsize, const double Mymu);
32  virtual ~LMSCanceller();
33  };
34  /* @} */
35  }
36 #endif // LMSCANCELLER_H
virtual void AdaptFilter(const gplib::rvec &Input, const gplib::rvec &Desired)
Adapt the filter weights given the Input and Desired vectors.
Implements a LMS adaptive filter.
Definition: LMSCanceller.h:19
Base class for least squares filter with a single output value.
Definition: LSSOFilter.h:20
LMSCanceller(const int inputsize)
void SetMu(const double Mymu)
Definition: LMSCanceller.h:24