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
impl MultiSensorSession
Sourcepub fn add_sensor(
&mut self,
sensor_id: impl Into<String>,
config: SessionConfig,
feature_fn: impl Fn(f64) -> Vec<f64> + 'static,
feature_dim: usize,
)
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 sensorconfig: session configuration for this sensorfeature_fn: feature engineering function for this sensorfeature_dim: number of features D
Sourcepub fn add_measurement(
&mut self,
sensor_id: &str,
raw_input: f64,
measured_output: f64,
)
pub fn add_measurement( &mut self, sensor_id: &str, raw_input: f64, measured_output: f64, )
Add a measurement to the specified sensor session.
Sourcepub fn next_iteration_all(&mut self) -> Vec<MultiSensorRecommendation>
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.
Sourcepub fn all_goals_met(&self) -> bool
pub fn all_goals_met(&self) -> bool
Check whether all registered sensors have met their precision goals.
Sourcepub fn precision_summary(&self) -> Vec<(String, f64)>
pub fn precision_summary(&self) -> Vec<(String, f64)>
Per-sensor precision summary (sensor_id → current p95 std).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MultiSensorSession
impl !Send for MultiSensorSession
impl !Sync for MultiSensorSession
impl !UnwindSafe for MultiSensorSession
impl Freeze for MultiSensorSession
impl Unpin for MultiSensorSession
impl UnsafeUnpin for MultiSensorSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more