pub enum BootstrapIntegrityAlert {
Clean,
PsdNonFlat {
flatness_score: f32,
threshold: f32,
},
MeanShift {
deviation: f32,
},
VarianceShift {
deviation: f32,
},
}Expand description
Outcome of a pre-calibration bootstrap integrity check.
Returned by check_bootstrap_integrity before an admissibility envelope
is locked. A non-BootstrapIntegrityAlert::Clean result means the
calibration window contains organised structure and should be rejected;
the engine must not lock the envelope until a clean window is found.
This directly addresses the “Bootstrap Paradox” panel criticism (paper §L \textit{Pre-emptive Technical Defence}, item 6): if the South China Sea calibration window is already jammed, spectral non-flatness will manifest as a non-zero lag-1 autocorrelation (Wiener-Khinchin) and this alert fires.
§Examples
use dsfb_rf::stationarity::{check_bootstrap_integrity, StationarityConfig, BootstrapIntegrityAlert};
let clean: Vec<f32> = (0..64).map(|i| 0.5 + 0.01 * (i as f32 % 7.0 - 3.0)).collect();
assert_eq!(check_bootstrap_integrity(&clean, &StationarityConfig::default()),
BootstrapIntegrityAlert::Clean);Variants§
Clean
Calibration window passed all WSS and PSD flatness tests. Safe to lock.
PsdNonFlat
PSD flatness test failed: lag-1 autocorrelation exceeded the configured threshold. The window likely contains periodic interference.
Fields
MeanShift
Mean stationarity test failed: the half-window means diverge.
VarianceShift
Variance stationarity test failed: the half-window variances diverge.
Implementations§
Source§impl BootstrapIntegrityAlert
impl BootstrapIntegrityAlert
Sourcepub fn blocks_calibration(self) -> bool
pub fn blocks_calibration(self) -> bool
Returns true if this alert blocks calibration lock.
Trait Implementations§
Source§impl Clone for BootstrapIntegrityAlert
impl Clone for BootstrapIntegrityAlert
Source§fn clone(&self) -> BootstrapIntegrityAlert
fn clone(&self) -> BootstrapIntegrityAlert
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more