#include <Smoother.h>


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) |
Smoothes incoming vectors by computing the mean of the last n incoming vectors
Definition at line 16 of file Smoother.h.
| Smoother::Smoother | ( | size_t | windowSize, | |
| AbstractModule * | successor | |||
| ) |
| 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 | |||
| ) |
| 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] |
| const size_t Smoother::getWindowSize | ( | ) | const [inline] |
| 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
| data | Incoming vectors or signals |
Reimplemented from ProcessModule.
Definition at line 29 of file Smoother.cpp.
| void Smoother::setWindowSize | ( | const size_t | wz | ) | [inline] |
1.5.7.1