Skip to main content

SemioticHorizon

Struct SemioticHorizon 

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

Fixed-capacity semiotic horizon grid.

Stores detection results across a sweep of (SNR, α) operating points. Used to generate the “Horizon of Failure” heatmap artifact.

Implementations§

Source§

impl<const N: usize> SemioticHorizon<N>

Source

pub const fn new() -> Self

Create an empty horizon grid.

Source

pub fn record( &mut self, snr_db: f32, drift_rate: f32, detected: bool, latency: u32, ) -> bool

Record a detection result at (snr_db, drift_rate).

Source

pub fn len(&self) -> usize

Number of recorded points.

Source

pub fn is_empty(&self) -> bool

Whether the grid is empty.

Source

pub fn points(&self) -> &[HorizonPoint]

Iterator over recorded points.

Source

pub fn detection_rate(&self) -> f32

Detection rate across all recorded points.

Source

pub fn mean_detection_latency(&self) -> f32

Mean detection latency for detected points.

Trait Implementations§

Source§

impl<const N: usize> Default for SemioticHorizon<N>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<const N: usize> Freeze for SemioticHorizon<N>

§

impl<const N: usize> RefUnwindSafe for SemioticHorizon<N>

§

impl<const N: usize> Send for SemioticHorizon<N>

§

impl<const N: usize> Sync for SemioticHorizon<N>

§

impl<const N: usize> Unpin for SemioticHorizon<N>

§

impl<const N: usize> UnsafeUnpin for SemioticHorizon<N>

§

impl<const N: usize> UnwindSafe for SemioticHorizon<N>

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.