Skip to content

Struct SYN_Signal

ClassList > 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

int32_t* SYN_Signal::buf;

Sample buffer (circular)


variable cache_valid

bool SYN_Signal::cache_valid;

True if min/max caches are current


variable cached_max

int32_t SYN_Signal::cached_max;

Cached max (invalidated on push)


variable cached_min

int32_t SYN_Signal::cached_min;

Cached min (invalidated on push)


variable capacity

size_t SYN_Signal::capacity;

Buffer size


variable count

size_t SYN_Signal::count;

Number of valid samples (≤ capacity)


variable head

size_t SYN_Signal::head;

Next write position


variable sum

int64_t SYN_Signal::sum;

Sum of all samples in window



The documentation for this class was generated from the following file src/syntropic/dsp/syn_signal.h