pub enum PrecisionLevel {
Low,
Moderate,
High,
Max,
}Expand description
Calibration precision goal expressed as a multiple of the sensor noise floor.
Choose based on the application’s tolerance for measurement uncertainty:
- Low — fastest, coarsest; suitable for rapid commissioning.
- Moderate — balanced; covers most production use cases.
- High — demanding; requires substantially more measurements.
- Max — theoretical limit; rarely achievable with finite data.
Variants§
Low
Target precision = 5× sensor noise. Low accuracy; fast convergence.
Moderate
Target precision = 3× sensor noise. Balanced accuracy and sample cost.
High
Target precision = 1.5× sensor noise. High accuracy; significant sample cost.
Max
Target precision = 1× sensor noise. Sensor-limited; theoretical maximum.
Implementations§
Source§impl PrecisionLevel
impl PrecisionLevel
Sourcepub fn factor(self) -> f64
pub fn factor(self) -> f64
Noise multiplier for this tier (absolute_tolerance = σ_noise × factor).
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Human-readable description of this tier.
Sourcepub fn estimated_samples(self) -> usize
pub fn estimated_samples(self) -> usize
Heuristic number of samples estimated to reach this tier.
Derived from the approximation ceil(50 / factor²), calibrated against
typical BLR+ARD active learning convergence rates.
Trait Implementations§
Source§impl Clone for PrecisionLevel
impl Clone for PrecisionLevel
Source§fn clone(&self) -> PrecisionLevel
fn clone(&self) -> PrecisionLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrecisionLevel
Source§impl Debug for PrecisionLevel
impl Debug for PrecisionLevel
Source§impl<'de> Deserialize<'de> for PrecisionLevel
impl<'de> Deserialize<'de> for PrecisionLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PrecisionLevel
impl Display for PrecisionLevel
impl Eq for PrecisionLevel
Source§impl PartialEq for PrecisionLevel
impl PartialEq for PrecisionLevel
Source§fn eq(&self, other: &PrecisionLevel) -> bool
fn eq(&self, other: &PrecisionLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrecisionLevel
impl Serialize for PrecisionLevel
impl StructuralPartialEq for PrecisionLevel
Auto Trait Implementations§
impl Freeze for PrecisionLevel
impl RefUnwindSafe for PrecisionLevel
impl Send for PrecisionLevel
impl Sync for PrecisionLevel
impl Unpin for PrecisionLevel
impl UnsafeUnpin for PrecisionLevel
impl UnwindSafe for PrecisionLevel
Blanket Implementations§
impl<T> Boilerplate for T
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