Skip to content

Struct detector_state_t

ClassList > detector_state_t

1-D signal detector state. More...

  • #include <detector_core.h>

Public Attributes

Type Name
int _last_corr_valid
corr_state_t * corr
float * mag_buf
size_t n
float noise_est
size_t noise_hi
size_t noise_lo
det_noise_mode_t noise_mode
float * noise_scratch
float complex * out_buf
size_t peak_lag
float peak_mag
dp_f32_t * ring
size_t ring_cap
float test_stat
float threshold

Detailed Description

Allocate with detector_create(); never stack-allocate.

Public Attributes Documentation

variable _last_corr_valid

int detector_state_t::_last_corr_valid;

1 after the first dump, else 0.


variable corr

corr_state_t* detector_state_t::corr;

FFT correlator + int-dump engine.


variable mag_buf

float* detector_state_t::mag_buf;

|out_buf[k]|, n floats.


variable n

size_t detector_state_t::n;

Frame / FFT length in complex samples.


variable noise_est

float detector_state_t::noise_est;

variable noise_hi

size_t detector_state_t::noise_hi;

Noise bin range upper bound (inclusive).


variable noise_lo

size_t detector_state_t::noise_lo;

Noise bin range lower bound (inclusive).


variable noise_mode

det_noise_mode_t detector_state_t::noise_mode;

variable noise_scratch

float* detector_state_t::noise_scratch;

Scratch for median sort.


variable out_buf

float complex* detector_state_t::out_buf;

Corr output buffer (n complex samples).


variable peak_lag

size_t detector_state_t::peak_lag;

variable peak_mag

float detector_state_t::peak_mag;

variable ring

dp_f32_t* detector_state_t::ring;

Double-mapped ring buffer (auto-sized).


variable ring_cap

size_t detector_state_t::ring_cap;

Ring buffer capacity in complex samples.


variable test_stat

float detector_state_t::test_stat;

variable threshold

float detector_state_t::threshold;

0 = always fire; >0 = gate on test_stat.



The documentation for this class was generated from the following file native/inc/detector/detector_core.h