Skip to content

Struct dp_correlator_state_t

ClassList > dp_correlator_state_t

Correlator state, every flavor. More...

  • #include <correlator_core.h>

Public Attributes

Type Name
unsigned char _hot_pad
int _last_corr_valid
float _Complex * accum
uint8_t * band_mask
float _Complex * bat_acc
float _Complex * bat_fine
float _Complex * bat_map
float _Complex * bat_pad
float _Complex * bat_work
int col_out
float _Complex * col_ref
size_t consumed
size_t count
float _Complex * dd_fine
int dd_fused
struct dp__dd_map * dd_map
size_t * dd_rows
float _Complex * det_out
double doppler_step
size_t dwell
int fast_path
dp_correlator_flavor_t flavor
dp_f32_framer_t framer
dp_fft2d_state_t * fwd
dp_fft_state_t * fwd1d
dp_fft2d_state_t * inv
dp_fft_state_t * inv1d
float * mag_buf
size_t max_peaks
size_t n
size_t n_out
size_t n_peaks
size_t n_twins
float noise_est
size_t noise_hi
size_t noise_lo
det_noise_mode_t noise_mode
float * noise_scratch
int nworkers
size_t nx
size_t nx_out
size_t ny
size_t ny_out
size_t peak_col
float peak_mag
uint8_t * peak_mask
size_t peak_row
det_peak_t * peaks
dp_pool_t * pool
float _Complex * ref_spec
dp_f32_t * ring
size_t ring_cap
dp_fft_state_t ** row_fwd
dp_fft_state_t ** row_inv
float _Complex * row_ref_spec
dp_correlator_search_t * search
dp_correlator_search_t search_rec
float test_stat
float threshold
uint32_t * twin_col
uint32_t * twin_row
float _Complex * work_fft
float _Complex * work_pad
float _Complex * work_trunc
float _Complex * zcol
float _Complex * zcolout
int zone_all_doppler
double zone_half_chips
float _Complex * ztmp

Detailed Description

Allocate with a dp_correlator_create_*() constructor; never stack-allocate. All heap buffers are ny * nx complex floats stored in row-major order.

Public Attributes Documentation

variable _hot_pad

unsigned char dp_correlator_state_t::_hot_pad[64];

Keeps count off the read fields' cache lines.


variable _last_corr_valid

int dp_correlator_state_t::_last_corr_valid;

1 once a dump has filled det_out; 0 after create, reset and set_state.


variable accum

float _Complex* dp_correlator_state_t::accum;

Coherent product-spectrum accumulator, same (ny,nx)/reinterpretation rule as work_fft.


variable band_mask

uint8_t* dp_correlator_state_t::band_mask;

n_surf; 1 = outside the searched band.


variable bat_acc

float _Complex* dp_correlator_state_t::bat_acc;

Per-worker accumulators, nworkers x n; zero between maps.


variable bat_fine

float _Complex* dp_correlator_state_t::bat_fine;

Per-worker dd_fine for batches; NULL when the map runs rows first.


variable bat_map

float _Complex* dp_correlator_state_t::bat_map;

Per-worker maps, nworkers x n_out.


variable bat_pad

float _Complex* dp_correlator_state_t::bat_pad;

Per-worker row zero-pad, nworkers x ny x nx_out; fast path with nx_out > nx only.


variable bat_work

float _Complex* dp_correlator_state_t::bat_work;

Per-worker forward spectra, nworkers x n.


variable col_out

int dp_correlator_state_t::col_out;

Output column, or < 0 for the full map.


variable col_ref

float _Complex* dp_correlator_state_t::col_ref;

conj(ref row 0) in the TIME domain, length nx; NULL when col_out < 0.


variable consumed

size_t dp_correlator_state_t::consumed;

Input samples the last push took.


variable count

size_t dp_correlator_state_t::count;

Frames accumulated (0 … dwell-1).


variable dd_fine

float _Complex* dp_correlator_state_t::dd_fine;

The map's scratch when it runs whole (slow first, or one slow row); NULL when it runs rows first, fused into the row stage. Delay-Doppler.


variable dd_fused

int dp_correlator_state_t::dd_fused;

1 when the map runs rows first (its rule at one tile, one rate): the dump frame's rows are inverted as they are accumulated.


variable dd_map

struct dp__dd_map* dp_correlator_state_t::dd_map;

The one delay-Doppler block map (docs/design/acq-surface.md §18.1), one slot per worker. Delay-Doppler only; internal.


variable dd_rows

size_t* dp_correlator_state_t::dd_rows;

Output row of slow row i: the centered (i + ny_out/2) mod ny_out.


variable det_out

float _Complex* dp_correlator_state_t::det_out;

The last dump's correlation map, n complex samples.


variable doppler_step

double dp_correlator_state_t::doppler_step;

Doppler spacing between adjacent output rows, cycles/sample: 1 / (ny_out * nx). 0 for the 2-D map.


variable dwell

size_t dp_correlator_state_t::dwell;

Integration depth.


variable fast_path

int dp_correlator_state_t::fast_path;

1 if using the 1-D-per-row fast path.


variable flavor

dp_correlator_flavor_t dp_correlator_state_t::flavor;

The constructor that built it.


variable framer

dp_f32_framer_t dp_correlator_state_t::framer;

Any chunk in, n-sample frames out.


variable fwd

dp_fft2d_state_t* dp_correlator_state_t::fwd;

Forward 2-D plan (sign = -1) at (ny, nx). NULL when fast_path.


variable fwd1d

dp_fft_state_t* dp_correlator_state_t::fwd1d;

Forward 1-D plan, length nx. Fast only.


variable inv

dp_fft2d_state_t* dp_correlator_state_t::inv;

Inverse 2-D plan (sign = +1) at (ny_out,…). NULL when fast_path.


variable inv1d

dp_fft_state_t* dp_correlator_state_t::inv1d;

Inverse 1-D plan, length nx_out. Fast only.


variable mag_buf

float* dp_correlator_state_t::mag_buf;

|det_out|, n floats.


variable max_peaks

size_t dp_correlator_state_t::max_peaks;

Peak-list capacity per dwell (1 = the maximum only); dp_correlator_set_max_peaks().


variable n

size_t dp_correlator_state_t::n;

ny * nx — total element count.


variable n_out

size_t dp_correlator_state_t::n_out;

ny_out * nx_out — output element count.


variable n_peaks

size_t dp_correlator_state_t::n_peaks;

Search flavors: picks in the last dwell, held ones too.


variable n_twins

size_t dp_correlator_state_t::n_twins;

Search flavors: picks carried over from the last dwell.


variable noise_est

float dp_correlator_state_t::noise_est;

Last dump: the noise floor.


variable noise_hi

size_t dp_correlator_state_t::noise_hi;

Noise bin range, last (inclusive).


variable noise_lo

size_t dp_correlator_state_t::noise_lo;

Noise bin range, first (inclusive).


variable noise_mode

det_noise_mode_t dp_correlator_state_t::noise_mode;

Noise aggregation.


variable noise_scratch

float* dp_correlator_state_t::noise_scratch;

Scratch for the median's sort.


variable nworkers

int dp_correlator_state_t::nworkers;

Chunks per stage (1 = serial).


variable nx

size_t dp_correlator_state_t::nx;

Column count.


variable nx_out

size_t dp_correlator_state_t::nx_out;

Output columns (== nx unless decoupled).


variable ny

size_t dp_correlator_state_t::ny;

Row count.


variable ny_out

size_t dp_correlator_state_t::ny_out;

Output rows (== ny unless decoupled).


variable peak_col

size_t dp_correlator_state_t::peak_col;

Last dump: peak column (the lag at one row).


variable peak_mag

float dp_correlator_state_t::peak_mag;

Last dump: peak |R|.


variable peak_mask

uint8_t* dp_correlator_state_t::peak_mask;

n_surf; the working mask.


variable peak_row

size_t dp_correlator_state_t::peak_row;

Last dump: peak row (0 before one).


variable peaks

det_peak_t* dp_correlator_state_t::peaks;

max_peaks: the last dwell's picks.


variable pool

dp_pool_t* dp_correlator_state_t::pool;

Persistent workers; NULL when serial.


variable ref_spec

float _Complex* dp_correlator_state_t::ref_spec;

conj(FFT2(ref)), pre-computed. (ny, nx). NULL when fast_path (see row_ref_spec).


variable ring

dp_f32_t* dp_correlator_state_t::ring;

The carry's storage: bound to framer, freed by destroy.


variable ring_cap

size_t dp_correlator_state_t::ring_cap;

Ring capacity, complex samples.


variable row_fwd

dp_fft_state_t** dp_correlator_state_t::row_fwd;

Per-worker forward row plans, length nx; worker 0's is fwd1d. Fast path only.


variable row_inv

dp_fft_state_t** dp_correlator_state_t::row_inv;

Per-worker inverse row plans, length nx_out; worker 0's is inv1d. Fast path only.


variable row_ref_spec

float _Complex* dp_correlator_state_t::row_ref_spec;

conj(FFT_nx(ref row 0)), length nx. Fast-path replacement for ref_spec.


dp_correlator_search_t* dp_correlator_state_t::search;

The search policy: search_rec in the search flavors, NULL in the other five.


variable search_rec

dp_correlator_search_t dp_correlator_state_t::search_rec;

search points here in a search flavor.


variable test_stat

float dp_correlator_state_t::test_stat;

Last dump: peak_mag / noise_est, or 0.


variable threshold

float dp_correlator_state_t::threshold;

0 = always fire; > 0 gates test_stat.


variable twin_col

uint32_t* dp_correlator_state_t::twin_col;

max_peaks: last dwell's picks, code phases.


variable twin_row

uint32_t* dp_correlator_state_t::twin_row;

max_peaks: last dwell's picks, native rows.


variable work_fft

float _Complex* dp_correlator_state_t::work_fft;

Scratch: FFT(in)·ref_spec product. (ny,nx) either path — fast path reinterprets this as ny independent length-nx row spectra.


variable work_pad

float _Complex* dp_correlator_state_t::work_pad;

Zero-padded product, (ny_out, nx_out) or, fast path, (ny, nx_out).


variable work_trunc

float _Complex* dp_correlator_state_t::work_trunc;

Bounce buffer for a dump into an under-sized out (jm gh-138). Both execute paths the 2-D inverse and the per-row fast path write the full n_out surface, so a short out is served by writing here and copying the prefix. Allocated lazily; the sized path never touches it.


variable zcol

float _Complex* dp_correlator_state_t::zcol;

Column gather scratch, (ny). General path only.


variable zcolout

float _Complex* dp_correlator_state_t::zcolout;

Column-padded scratch, (ny_out). General path only.


variable zone_all_doppler

int dp_correlator_state_t::zone_all_doppler;

dp_correlator_set_peak_zone(): 1 = a listed peak's zone covers every Doppler bin of every roll; 0 = one native row (default).


variable zone_half_chips

double dp_correlator_state_t::zone_half_chips;

... and its half-width in chips across the lags; <= 0 = the template's mainlobe (shape.zone, the default).


variable ztmp

float _Complex* dp_correlator_state_t::ztmp;

Row-padded intermediate, (ny, nx_out). General path only.



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