Skip to content

Struct dp_correlator_search

ClassList > dp_correlator_search

The search flavors' policy: everything the two search constructors add on top of the four layers (docs/design/archive/correlator-step3.md section 7, 3.4b). Held by dp_correlator_state_t::search , allocated once at create; NULL in every other flavor.

  • #include <correlator_core.h>

Public Attributes

Type Name
unsigned char _hot_pad
size_t blk_epoch
float _Complex * blk_raw
uint8_t burst
double carrier_freq_hz
double chip_rate
double cn0_dbhz
size_t code_bins
size_t code_only_epochs
size_t coherent_bins
double doppler_rate
double doppler_res_hz
double doppler_span_hz
double doppler_uncertainty
int dsl_ready
size_t dsl_window_bins
uint64_t dwells
int epoch_fan
double epochs_per_symbol
float eta
float eta_nc
size_t frame_n
double fs
size_t interp
int keep_surface
size_t lag_bins
size_t map_f
int32_t * map_off
size_t * map_rows
float _Complex * map_spec
struct dp__dd_tile * map_tiles
float _Complex * map_work
float _Complex * map_wt
size_t n
size_t n_held
size_t n_noncoh
size_t n_surf
size_t nc_count
float * nc_surface
float _Complex * out_buf
dp_correlator_part_t * parts
double pd
double pd_burst
double pd_predicted
float peak_conc
double pfa
double pfa_cell
float _Complex * prompt_scratch
float _Complex * rate_best
size_t rate_best_cap
size_t rate_best_h
float _Complex * rate_chirp
size_t rate_chirp_d
size_t rate_hyps
float _Complex * ref
float _Complex * ref_spec
size_t reps
uint64_t samples_consumed
size_t searched_bins
size_t sf
dp_correlator_shape_t shape
dp_correlator_surface_sink_fn sink
void * sink_ctx
uint32_t sink_decim
size_t sl_ccol
double * sl_cmax
size_t sl_cn
size_t sl_cnext
size_t sl_crow
double sl_ctile
struct dp__dd_map * sl_map
struct dp__dd_map * sl_map_cb
float _Complex * sl_scratch
float * stat_surface
double straddle_loss
uint64_t surface_at
double symbol_rate
int threads
int threads_req
dp_correlator_tlm_t tlm
uint8_t underpowered
size_t window_bins

Public Attributes Documentation

variable _hot_pad

unsigned char dp_correlator_search::_hot_pad[64];

Keeps the push-written fields off the read fields' cache lines.


variable blk_epoch

size_t dp_correlator_search::blk_epoch;

Epochs gathered in the current block (0 … coherent_bins-1).


variable blk_raw

float _Complex* dp_correlator_search::blk_raw;

coherent_bins * code_bins: the block's raw epochs as pushed, which the map reads at the block's end (and the tile-edge test of search_resolve_tile_alias()); NULL unless the engine is tiled with D > 1.


variable burst

uint8_t dp_correlator_search::burst;

1 for an engine built by dp_correlator_create_burst(), 0 for dp_correlator_create_continuous(). Config.


variable carrier_freq_hz

double dp_correlator_search::carrier_freq_hz;

RF carrier the Doppler is physically coupled to, Hz (dp_correlator_set_carrier_freq_hz()); 0 = uncoupled: no code-rate hypothesis per tile, no dwell advance in the hand-off.


variable chip_rate

double dp_correlator_search::chip_rate;

Chip rate (Hz).


variable cn0_dbhz

double dp_correlator_search::cn0_dbhz;

Design C/N0 the search is sized for (dB-Hz); NaN (DP_CORRELATOR_CN0_NONE) means none was given.


variable code_bins

size_t dp_correlator_search::code_bins;

One code period in samples, fs * sf / chip_rate: the length of every forward fast-time transform and of the raw epoch.


variable code_only_epochs

size_t dp_correlator_search::code_only_epochs;

Whole code-only epochs a waveform's code-only window holds at any chip phase (docs/design/async-dsss-receiver.md §2.1); 1 = no window, D = 1.


variable coherent_bins

size_t dp_correlator_search::coherent_bins;

Coherent depth = slow-time FFT length (<= reps on a burst engine). In wideband mode the block depth D inside every tile (file doc); 1 = one epoch, the continuous engine's default.


variable doppler_rate

double dp_correlator_search::doppler_rate;

Doppler rate the depth is bounded against (Hz/s); 0 = no bound from the rate.


variable doppler_res_hz

double dp_correlator_search::doppler_res_hz;

Doppler bin width = chip_rate/(sf*coherent_bins).


variable doppler_span_hz

double dp_correlator_search::doppler_span_hz;

Native Doppler half-range = chip_rate/(2*sf).


variable doppler_uncertainty

double dp_correlator_search::doppler_uncertainty;

One-sided Doppler search half-range (Hz); 0 = full native span.


variable dsl_ready

int dp_correlator_search::dsl_ready;

1 once dp_correlator_shape_t::dsl holds its value: it is computed on its first read, dp_correlator_dsl_db(), not by the constructor a sweep of the ambiguity that only a peak-list consumer reads.


variable dsl_window_bins

size_t dp_correlator_search::dsl_window_bins;

The tiles of the grid the engine was BUILT with, which dp_correlator_shape_t::dsl is defined on; a grid pinned later does not move it.


variable dwells

uint64_t dp_correlator_search::dwells;

dwells decided since create/reset


variable epoch_fan

int dp_correlator_search::epoch_fan;

1 (create's default): every tile stage fans on the pool. 0: the stages that run once an epoch run inline, and the per-block ones fan only when a block is more than one epoch. The result is bit-identical either way; only the cost moves. async_dsss_pool clears it on its search (doppler#2775): on bare metal the per-epoch fan pays even at one tile a worker, while on a host with a costly wake-up (WSL2) it costs that pool 1.9-3.5x at D = 1, so no tile count decides it.


variable epochs_per_symbol

double dp_correlator_search::epochs_per_symbol;

(chip_rate/sf)/symbol_rate; 0 when symbol_rate <= 0.


variable eta

float dp_correlator_search::eta;

Raw per-cell Rayleigh amplitude threshold.


variable eta_nc

float dp_correlator_search::eta_nc;

Non-coherent CFAR threshold (order-N_nc Marcum).


variable frame_n

size_t dp_correlator_search::frame_n;

Raw samples consumed from the ring per iteration: == n natively; == code_bins in wideband mode (one epoch's worth — window_bins hypotheses come from ONE shared epoch, not from consuming more input).


variable fs

double dp_correlator_search::fs;

Sample rate (Hz) = chip_rate * code_bins / sf.


variable interp

size_t dp_correlator_search::interp;

Doppler-axis interpolation factor of the inverse (1 = none). Zero-padding the product in frequency is exact band-limited interpolation, so a peak landing between two slow-time bins is no longer attenuated by the scalloping loss that made a half-bin burst invisible at any SNR (gh-1002). It adds resolution to the SURFACE only: the reported bin is mapped back to the native grid, so no consumer's arithmetic changes.


variable keep_surface

int dp_correlator_search::keep_surface;

1 = the caller asked to keep surfaces; set by a caller or by dp_correlator_set_surface_sink(). A surface is kept while this OR a sink is set (dp_correlator_surface())


variable lag_bins

size_t dp_correlator_search::lag_bins;

Code-phase columns of the surface: the inverse fast-time transform's length. code_bins, except on a continuous engine whose code_bins is not 7-smooth (dp_fft_smooth_floor()): there the cross-spectrum is zero-padded to the next power of two before the inverse, which interpolates the circular correlation exactly and costs a fraction of a transform of awkward length. Column c is lag c * code_bins / lag_bins samples.


variable map_f

size_t dp_correlator_search::map_f;

The ramp's fine grid: 4 when a carrier is set, the engine is tiled and D > 1; else 1.


variable map_off

int32_t* dp_correlator_search::map_off;

window_bins x code_bins rounded-ramp offsets; NULL when no tile ramps (map_f == 1).


variable map_rows

size_t* dp_correlator_search::map_rows;

window_bins x D*interp: each slow row's surface row (acq_block_row).


variable map_spec

float _Complex* dp_correlator_search::map_spec;

The block's epoch spectra, coherent_bins x code_bins.


variable map_tiles

struct dp__dd_tile* dp_correlator_search::map_tiles;

window_bins tiles: roll, ramp offsets, weights, rows.


variable map_work

float _Complex* dp_correlator_search::map_work;

The map's scratch for its schedule (dp__dd_map_work_len).


variable map_wt

float _Complex* dp_correlator_search::map_wt;

The tiles' weights: window_bins x code_bins with a ramp, else one shared code_bins (ref_spec / code_bins).


variable n

size_t dp_correlator_search::n;

NATIVE grid size in samples: coherent_bins * window_bins * code_bins (both may exceed 1: D rows inside each tile). This is the INPUT frame and the count of statistically independent cells it is what the threshold ladder is sized from, and it is what row is reported on.


variable n_held

size_t dp_correlator_search::n_held;

the last dwell's picks held as twins (§7.1)


variable n_noncoh

size_t dp_correlator_search::n_noncoh;

Non-coherent looks per detection (1 = coherent).


variable n_surf

size_t dp_correlator_search::n_surf;

Cells in the correlation SURFACE = interp * n. The inverse transform is evaluated on a finer Doppler grid, so the buffers, the peak search and the CFAR reference span this and not n.


variable nc_count

size_t dp_correlator_search::nc_count;

Coherent dumps in the current look (0…n_noncoh-1).


variable nc_surface

float* dp_correlator_search::nc_surface;

Non-coherent |·|² accumulator (n); NULL unless n_noncoh > 1.


variable out_buf

float _Complex* dp_correlator_search::out_buf;

The decided coherent surface (n_surf): the one delay-Doppler map's output, rows of lag_bins, scaled 1/code_bins on every path (docs/design/acq-surface.md §18.1).


variable parts

dp_correlator_part_t* dp_correlator_search::parts;

Partial slots of the decided surface's per-chunk passes: room for window_bins x 8 chunks, one a chunk


variable pd

double dp_correlator_search::pd;

Target detection probability.


variable pd_burst

double dp_correlator_search::pd_burst;

Predicted Pd of one BURST of reps repetitions at cn0_dbhz: the dwells are aligned to the stream, so the preamble lands at a uniform offset and spans about reps/D of them, whole or partial; the burst is detected when any one is. Averaged over that alignment and the same straddle nodes as pd_predicted (one node for every dwell of a burst: they share its Doppler and delay). What a burst engine sizes on and sets underpowered from (doppler#1498). Assumes the preamble is exactly reps periods. NAN on a continuous engine, with n_noncoh > 1, or with no design C/N0.


variable pd_predicted

double dp_correlator_search::pd_predicted;

Predicted Pd at cn0_dbhz and the chosen grid of ONE dwell lying wholly inside the signal (a burst engine's is judged on pd_burst instead): the AVERAGE Pd over the straddle priors (slow-time scalloping over the INTERPOLATED bin the peak search samples, intra-segment rotation, code sample offset — quadrature over uniform priors), not the on-grid best case, and not Pd at the mean amplitude (which Jensen makes optimistic). Conservative by construction: the engine takes the maximum over an interpolated surface, which the Marcum form does not credit (doppler#1183, #1064). NAN when no design C/N0 was given.


variable peak_conc

float dp_correlator_search::peak_conc;

the strongest pick's column concentration


variable pfa

double dp_correlator_search::pfa;

Target system false-alarm probability (stored for configure_search_raw's threshold re-derivation).


variable pfa_cell

double dp_correlator_search::pfa_cell;

Sidak per-cell false-alarm probability, split over the cells a dwell's maximum ranges over: the in-band rows of the interpolated surface, times lag_bins, times the rate hypotheses.


variable prompt_scratch

float _Complex* dp_correlator_search::prompt_scratch;

dp_correlator_block_prompt()'s: an epoch's spectrum, its weights and a row (2 code_bins + lag_bins); made on first use.


variable rate_best

float _Complex* dp_correlator_search::rate_best;

n_surf cells: the best hypothesis' surface while the others are searched.


variable rate_best_cap

size_t dp_correlator_search::rate_best_cap;

Cells rate_best holds.


variable rate_best_h

size_t dp_correlator_search::rate_best_h;

Winning hypothesis of the last dwell.


variable rate_chirp

float _Complex* dp_correlator_search::rate_chirp;

rate_hyps * rate_chirp_d slow-time de-chirp phasors; NULL while rate_hyps == 1. Rebuilt lazily when coherent_bins moves.


variable rate_chirp_d

size_t dp_correlator_search::rate_chirp_d;

The coherent_bins rate_chirp was built for.


variable rate_hyps

size_t dp_correlator_search::rate_hyps;

Doppler-rate hypotheses searched (>= 1); 1 = none: the engine as it ran without them. dp_correlator_create_burst()'s rate_hypotheses.


variable ref

float _Complex* dp_correlator_search::ref;

Single-row reference (n), owned.


variable ref_spec

float _Complex* dp_correlator_search::ref_spec;

conj(FFT(replica)), code_bins: the template every tile's weights carry.


variable reps

size_t dp_correlator_search::reps;

Max coherent code repetitions (the ceiling); always 1 for an engine built via dp_correlator_create_continuous().


variable samples_consumed

uint64_t dp_correlator_search::samples_consumed;

Total framed samples (the state's offset).


variable searched_bins

size_t dp_correlator_search::searched_bins;

Doppler bins scanned (<= coherent_bins; du prior).


variable sf

size_t dp_correlator_search::sf;

Chips per PN segment (= len(code)).


variable shape

dp_correlator_shape_t dp_correlator_search::shape;

The preamble's correlation shape (zone, delay straddle); config, filled by the constructor.


variable sink

dp_correlator_surface_sink_fn dp_correlator_search::sink;

NULL = none


variable sink_ctx

void* dp_correlator_search::sink_ctx;

caller's opaque pointer, passed to sink


variable sink_decim

uint32_t dp_correlator_search::sink_decim;

the sink sees every sink_decim-th dwell


variable sl_ccol

size_t dp_correlator_search::sl_ccol[DP_CORRELATOR_SIDELOBE_SLOTS];

its column,


variable sl_cmax

double* dp_correlator_search::sl_cmax;

... its cache: DP_CORRELATOR_SIDELOBE_SLOTS rows of lag_bins, each one hit's worst ratio at every column as read in one tile. Derived, never in a blob.


variable sl_cn

size_t dp_correlator_search::sl_cn;

slots filled


variable sl_cnext

size_t dp_correlator_search::sl_cnext;

the slot a full cache overwrites next


variable sl_crow

size_t dp_correlator_search::sl_crow[DP_CORRELATOR_SIDELOBE_SLOTS];

each slot's hit: its row,


variable sl_ctile

double dp_correlator_search::sl_ctile[DP_CORRELATOR_SIDELOBE_SLOTS];

and the tile centre, Hz


variable sl_map

struct dp__dd_map* dp_correlator_search::sl_map;

dp_correlator_sidelobe_ratio()'s transforms: the one delay-Doppler map at one epoch, code_bins in and lag_bins out, made on its first call


variable sl_map_cb

struct dp__dd_map* dp_correlator_search::sl_map_cb;

... and one at code_bins out, for the delayed replica


variable sl_scratch

float _Complex* dp_correlator_search::sl_scratch;

its buffers: the replica's spectrum, a mixed signal, its spectrum, the delayed replica, the spectrum's conjugate and ones (code_bins each), then the row (lag_bins)


variable stat_surface

float* dp_correlator_search::stat_surface;

n_surf: the last decided dwell in the gate's units; allocated on the first dwell decided while a surface is kept


variable straddle_loss

double dp_correlator_search::straddle_loss;

Mean AMPLITUDE derating from grid straddle — a diagnostic summary (~20*log10 of it in dB); sizing and pd_predicted average Pd itself over the priors. Derived config, recomputed by create().


variable surface_at

uint64_t dp_correlator_search::surface_at;

samples_consumed of that dwell; 0 = none


variable symbol_rate

double dp_correlator_search::symbol_rate;

Continuous data-symbol rate (Hz); 0 = no known data-modulation clock. Diagnostic only on an engine built via dp_correlator_create_continuous() (which always forces coherent_bins=1 regardless) — informational, doesn't feed sizing.


variable threads

int dp_correlator_search::threads;

workers a push fans on, the caller included; 1 = serial. The pool starts at the first push or at set_threads(), never at create.


variable threads_req

int dp_correlator_search::threads_req;

what the caller asked for: set_threads()'s n, 0 = the online cores. threads is this capped at one worker a tile when D = 1 and taken whole when D > 1; every regrid re-applies it, so narrowing to one tile and widening again comes back to the request, not to the 1 the narrow grid ran on (doppler#2797, #3047).


variable tlm

dp_correlator_tlm_t dp_correlator_search::tlm;

telemetry attachment; ctx NULL = detached


variable underpowered

uint8_t dp_correlator_search::underpowered;

1 when the Pd the engine is judged on falls short of pd: pd_burst on a burst engine, pd_predicted where pd_burst is NAN. Never without a design C/N0 there is no target to be under.


variable window_bins

size_t dp_correlator_search::window_bins;

Wideband frequency-window hypotheses (1 = disabled/native — see the file doc comment).



The documentation for this class was generated from the following file native/inc/doppler/correlator/correlator_core.h