10 LMSCanceller::LMSCanceller(
const int inputsize) :
25 const gplib::rvec &Desired)
29 throw FatalException(
"Input or Desired do not have expected size !");
32 double step = ublas::prec_inner_prod(Input, Input);
33 const double delta = 0.0001;
34 step = mu / (step + delta);
const gplib::rvec & GetEpsilon() const
Return the last estimation error.
const gplib::rvec & GetWeights()
Return the current set of weights.
void SetEpsilon(const gplib::rvec &MyEps)
Possibility for derived classes to set estimation error.
unsigned int GetInputLength()
Access function for derived classes for the inputlength.
virtual void AdaptFilter(const gplib::rvec &Input, const gplib::rvec &Desired)
Adapt the filter weights given the Input and Desired vectors.
const gplib::rvec & GetFilterOutput() const
Access to the last calculated output (not sure if needed)
gplib::rvec & SetWeights()
unsigned int GetOutputLength()
Access function for derived classes for the outputlength.
Base class for least squares filter with a single output value.
LMSCanceller(const int inputsize)
The basic exception class for all errors that arise in gplib.