Struct SYN_Signal¶
Signal statistics — sliding window with incremental min/max/mean.
#include <syn_signal.h>
Public Attributes¶
| Type | Name |
|---|---|
| int32_t * | buf |
| bool | cache_valid |
| int32_t | cached_max |
| int32_t | cached_min |
| size_t | capacity |
| size_t | count |
| size_t | head |
| int64_t | sum |
Public Attributes Documentation¶
variable buf¶
Sample buffer (circular)
variable cache_valid¶
True if min/max caches are current
variable cached_max¶
Cached max (invalidated on push)
variable cached_min¶
Cached min (invalidated on push)
variable capacity¶
Buffer size
variable count¶
Number of valid samples (≤ capacity)
variable head¶
Next write position
variable sum¶
Sum of all samples in window
The documentation for this class was generated from the following file src/syntropic/dsp/syn_signal.h