|
ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
|
One sliding window of displacements over a caller-owned ring. More...
#include <l1_delta_tracker.h>
Public Member Functions | |
| void | push (float value, uint16_t capacity) |
| float | mean () const |
| void | clear (uint16_t capacity) |
Public Attributes | |
| float * | ring {nullptr} |
| uint16_t | index {0U} |
| uint16_t | slots {0U} |
| uint16_t | count {0U} |
| float | sum {0.0f} |
One sliding window of displacements over a caller-owned ring.
The tracker keeps two of these, one per lag, and they share a single allocation, so the pair costs no extra bookkeeping and no second heap block.
Definition at line 33 of file l1_delta_tracker.h.
|
inline |
Definition at line 40 of file l1_delta_tracker.h.
|
inline |
Definition at line 60 of file l1_delta_tracker.h.
|
inline |
Definition at line 62 of file l1_delta_tracker.h.
| float* espectre::L1DeltaWindow::ring {nullptr} |
Definition at line 34 of file l1_delta_tracker.h.
| uint16_t espectre::L1DeltaWindow::index {0U} |
Definition at line 35 of file l1_delta_tracker.h.
| uint16_t espectre::L1DeltaWindow::slots {0U} |
Definition at line 36 of file l1_delta_tracker.h.
| uint16_t espectre::L1DeltaWindow::count {0U} |
Definition at line 37 of file l1_delta_tracker.h.
| float espectre::L1DeltaWindow::sum {0.0f} |
Definition at line 38 of file l1_delta_tracker.h.