Skip to main content

MultiSensorSession

Struct MultiSensorSession 

Source
pub struct MultiSensorSession { /* private fields */ }
Expand description

Multi-sensor calibration coordinator.

Maintains a map of named sensor sessions. Each sensor has its own independent BLR+ARD model and calibration config (different input ranges, feature functions, and precision targets are all supported).

Implementations§

Source§

impl MultiSensorSession

Source

pub fn new() -> Self

Create an empty multi-sensor session.

Source

pub fn add_sensor( &mut self, sensor_id: impl Into<String>, config: SessionConfig, feature_fn: impl Fn(f64) -> Vec<f64> + 'static, feature_dim: usize, )

Register a new sensor session.

§Arguments
  • sensor_id: unique identifier for this sensor
  • config: session configuration for this sensor
  • feature_fn: feature engineering function for this sensor
  • feature_dim: number of features D
Source

pub fn add_measurement( &mut self, sensor_id: &str, raw_input: f64, measured_output: f64, )

Add a measurement to the specified sensor session.

Source

pub fn next_iteration_all(&mut self) -> Vec<MultiSensorRecommendation>

Run one calibration iteration for all sensors.

Returns recommendations aggregated across all sensors that still need samples. Sensors that have met their goal or hit the noise floor are excluded from recommendations but their status is still reported.

Source

pub fn all_goals_met(&self) -> bool

Check whether all registered sensors have met their precision goals.

Source

pub fn precision_summary(&self) -> Vec<(String, f64)>

Per-sensor precision summary (sensor_id → current p95 std).

Trait Implementations§

Source§

impl Default for MultiSensorSession

Source§

fn default() -> Self

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

Auto Trait Implementations§

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> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

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.