Smoother Class Reference
[Processing modules]

A ProcessModule. More...

#include <Smoother.h>

Inheritance diagram for Smoother:

Inheritance graph
[legend]
Collaboration diagram for Smoother:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Smoother (size_t windowSize, AbstractModule *successor)
 Smoother (ConfigSection *config, AbstractModule *successor)
virtual ~Smoother ()
 Destructor.
virtual void processFrameData (IFrameData *data)
const size_t getWindowSize () const
void setWindowSize (const size_t wz)


Detailed Description

A ProcessModule.

Smoothes incoming vectors by computing the mean of the last n incoming vectors

Definition at line 16 of file Smoother.h.


Constructor & Destructor Documentation

Smoother::Smoother ( size_t  windowSize,
AbstractModule successor 
)

Parameters:
windowSize Size of the recording window (n)
successor Next module in chain

Definition at line 7 of file Smoother.cpp.

Smoother::Smoother ( ConfigSection config,
AbstractModule successor 
)

Parameters:
config Pointer to a ConfigSection holding the window size
successor Next module in chain

Definition at line 13 of file Smoother.cpp.

virtual Smoother::~Smoother (  )  [inline, virtual]

Destructor.

Definition at line 32 of file Smoother.h.


Member Function Documentation

const size_t Smoother::getWindowSize (  )  const [inline]

Returns:
the window size

Definition at line 43 of file Smoother.h.

void Smoother::processFrameData ( IFrameData data  )  [virtual]

Smoothes incoming vectors. Throws Warning if data is not of type Vector3D or Signal.

The output of frame-date is of type Vector3D or Signal

Parameters:
data Incoming vectors or signals

Reimplemented from ProcessModule.

Definition at line 29 of file Smoother.cpp.

void Smoother::setWindowSize ( const size_t  wz  )  [inline]

Parameters:
wz the window size

Definition at line 46 of file Smoother.h.


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

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1