Simple FIR moving maximum filter.
More...
#include <filters.h>
|
| | MovMax (float windowSize) |
| | Constucts and initializes the MovMax filter.
|
| |
| float | updateState (float u) |
| | Update and return the filter state.
|
| |
|
| unsigned int | M = 200 |
| | Window Size.
|
| |
| float * | cb_data |
| | Pointer to ring buffer holding the data.
|
| |
| unsigned int | cb_index |
| | Current ringbuffer index.
|
| |
Simple FIR moving maximum filter.
Implements a circular ringbuffer holding the sampled data over the window size M
◆ MovMax()
| bioscara_joint_firmware::MovMax::MovMax |
( |
float |
windowSize | ) |
|
|
inline |
Constucts and initializes the MovMax filter.
Allocates a ring buffer cb_data of size M.
- Parameters
-
| windowSize | the window size |
◆ updateState()
| float bioscara_joint_firmware::MovMax::updateState |
( |
float |
u | ) |
|
|
inline |
Update and return the filter state.
- Returns
- The updated filter state
◆ cb_data
| float* bioscara_joint_firmware::MovMax::cb_data |
|
protected |
Pointer to ring buffer holding the data.
◆ cb_index
| unsigned int bioscara_joint_firmware::MovMax::cb_index |
|
protected |
Current ringbuffer index.
| unsigned int bioscara_joint_firmware::MovMax::M = 200 |
|
protected |
The documentation for this class was generated from the following file: