![]() |
Documentation
Tools for embedded systems
|
A Moving Window Median filter. More...
#include <smoother.hpp>
Public Member Functions | |
| virtual | ~smootherMWM1 () |
| bool | setup (real_t *window, const size_t w_size) |
| Setup an initialize the Moving Window Median filter. | |
| template<size_t windowSize> | |
| bool | setup (real_t(&window)[windowSize]) |
| Setup an initialize the Moving Window Median filter. | |
| real_t | smooth (const real_t x) override |
| Perform the smooth operation recursively for the input signal x. | |
Public Member Functions inherited from qlibs::smoother | |
| virtual | ~smoother () |
| bool | isInitialized (void) const |
| Check if the smoother filter has been initialized using setup(). | |
| operator bool () const noexcept | |
| Check if the smoother filter has been initialized using setup(). | |
| bool | reset (void) |
| Reset the smoother filter. | |
A Moving Window Median filter.
|
inlinevirtual |
| bool smootherMWM1::setup | ( | real_t * | window, |
| const size_t | w_size ) |
Setup an initialize the Moving Window Median filter.
| [in] | window | An array to hold the samples of the window |
| [in] | w_size | The number of elements in window |
true on success, otherwise return false.
|
inline |
Setup an initialize the Moving Window Median filter.
| [in] | window | An array to hold the samples of the window |
true on success, otherwise return false. Perform the smooth operation recursively for the input signal x.
| [in] | x | A sample of the input signal. |
Implements qlibs::smoother.