Skip to main content

DetectabilityTracker

Struct DetectabilityTracker 

Source
pub struct DetectabilityTracker<const W: usize> { /* private fields */ }
Expand description

Running detectability tracker with O(1) per-sample update.

Generic W = window size for fraction tracking.

Implementations§

Source§

impl<const W: usize> DetectabilityTracker<W>

Source

pub const fn new(thresholds: DetectabilityThresholds) -> Self

Create a new tracker with the given thresholds.

Source

pub const fn default_rf() -> Self

Create with default RF thresholds.

Source

pub fn update( &mut self, norm: f32, rho: f32, alpha: f32, ) -> DetectabilitySummary

Update the tracker with one residual norm observation.

  • norm: current ‖r(k)‖
  • rho: current admissibility envelope radius ρ(k)
  • alpha: divergence rate (Lyapunov λ or empirical slew; pass 0.0 if unknown)

Returns a complete DetectabilitySummary for this observation.

Source

pub fn reset(&mut self)

Reset all state.

Source

pub fn post_crossing_duration(&self) -> u32

Access current post-crossing duration.

Source

pub fn peak_margin(&self) -> f32

Access peak margin since crossing.

Auto Trait Implementations§

§

impl<const W: usize> Freeze for DetectabilityTracker<W>

§

impl<const W: usize> RefUnwindSafe for DetectabilityTracker<W>

§

impl<const W: usize> Send for DetectabilityTracker<W>

§

impl<const W: usize> Sync for DetectabilityTracker<W>

§

impl<const W: usize> Unpin for DetectabilityTracker<W>

§

impl<const W: usize> UnsafeUnpin for DetectabilityTracker<W>

§

impl<const W: usize> UnwindSafe for DetectabilityTracker<W>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.