WienerInterpolator Class Reference
[Signal processing methods]

#include <WienerInterpolator.h>

Inheritance diagram for WienerInterpolator:

Inheritance graph
[legend]

List of all members.

Public Member Functions

double GetXms () const
 Return the prediction error.
virtual void AdaptFilter (const gplib::rvec &Input, const gplib::rvec &Desired)
 Calculate the prediction coefficients, the contents of Desired are ignored, this function has to be implemented in the filter class hieraychy.
gplib::rvec CalcCoefficients (const gplib::rvec &Input)
 A more convenient method to get the prediction coefficients, but unique to this class.
 WienerInterpolator (const int filterlength)
 The constructor needs to know the filterlength.
virtual ~WienerInterpolator ()


Detailed Description

********************************************* WienerInterpolator implements a linear prediction filter as described in Numerical Recipes, p. 566 , it uses the autocorrelation structure of the input data to predict the next sample Although it does not work exactly like the adaptive filters it is part of the class hierachy for now. The prediction coefficients are stored as Weights, but in opposite order to NR memcof, so they can be immediately used for prediction

Definition at line 19 of file WienerInterpolator.h.


Constructor & Destructor Documentation

WienerInterpolator::WienerInterpolator ( const int  filterlength  ) 

The constructor needs to know the filterlength.

Definition at line 5 of file WienerInterpolator.cpp.

WienerInterpolator::~WienerInterpolator (  )  [virtual]

Definition at line 11 of file WienerInterpolator.cpp.


Member Function Documentation

void WienerInterpolator::AdaptFilter ( const gplib::rvec &  Input,
const gplib::rvec &  Desired 
) [virtual]

Calculate the prediction coefficients, the contents of Desired are ignored, this function has to be implemented in the filter class hieraychy.

Implements AdaptiveFilter.

Definition at line 15 of file WienerInterpolator.cpp.

References size.

Referenced by CalcCoefficients(), and main().

gplib::rvec WienerInterpolator::CalcCoefficients ( const gplib::rvec &  Input  )  [inline]

A more convenient method to get the prediction coefficients, but unique to this class.

Definition at line 30 of file WienerInterpolator.h.

References AdaptFilter(), and LSSOFilter::GetWeights().

double WienerInterpolator::GetXms (  )  const [inline]

Return the prediction error.

Definition at line 26 of file WienerInterpolator.h.


The documentation for this class was generated from the following files:

Generated on Tue Aug 4 16:04:23 2009 for GPLIB++ by  doxygen 1.5.8