Expand description
Estimation and detection primitives.
The primitives here are intentionally scalar, deterministic, and dependency-light. They are a direct implementation point for embedded and desktop callers.
§Provenance
- Alpha-beta and equivalent scalar 2-state constant-velocity Kalman gains use the Bar-Shalom steady-state family relations.
- Innovation gating and NIS monitoring follow the standard chi-square gate construction.
- CFAR formulas use the cell-averaging exponential-tail model from Richards.
- MAD and EWMA are the canonical scalar definitions used in this repository’s
robust-statistics layer, with the Gaussian consistency constant for MAD
1.482602....
Structs§
- Alpha
Beta Gains - Alpha-beta steady-state gain set for one scalar channel.
- Alpha
Beta State - State of a scalar level + rate estimator.
- Alpha
Beta Step - One alpha-beta update result.
- NisGate
- Result of an NIS gate test.
- Scalar
Kalman Gains - Steady-state gains of the equivalent 2-state scalar Kalman model.
Enums§
- Primitive
Error - Public error for estimation/detection primitive validation failures.
Constants§
- MAD_
GAUSSIAN_ CONSISTENCY - MAD-Gaussian consistency factor
1 / Φ^{-1}(3/4).
Functions§
- alpha_
beta_ apply_ measurement - Apply one measurement update on a predicted scalar alpha-beta state.
- alpha_
beta_ filter_ step - Run one alpha-beta predict/update step from prior state to posterior state.
- alpha_
beta_ predict - Predict step for scalar alpha-beta.
- alpha_
beta_ steady_ state_ gains - Compute steady-state alpha-beta gains from the tracking index
λ. - cfar_
ca_ false_ alarm_ probability - CA-CFAR inverse map from absolute threshold to false-alarm probability.
- cfar_
ca_ multiplier_ from_ pfa - CA-CFAR multiplier from target false-alarm probability.
- cfar_
ca_ pfa_ from_ multiplier - CA-CFAR inverse map from threshold multiplier to false-alarm probability.
- cfar_
ca_ threshold - CA-CFAR absolute threshold from noise level, search window, and false-alarm target.
- ewma_
update - EWMA update with generic gain
alpha. - ewma_
update_ power_ of_ two - EWMA update with power-of-two denominator,
alpha = 1 / 2^shift. - kalman_
cv_ steady_ state_ gains - Steady-state gains for a 2-state scalar constant-velocity Kalman filter.
- mad_
spread - Median absolute deviation spread estimate with Gaussian consistency scaling.
- nis_
expected_ value - Bar-Shalom chi-square expectation
E[NIS] = m. - nis_
gate_ test - Test a measurement residual against a chi-square gate.
- nis_
gate_ threshold - Chi-square gate threshold for the requested confidence and DOF.
- nis_
statistic - Scalar normalized innovation squared statistic.
- normalized_
innovation - Scalar normalized innovation
ν / sqrt(S).