pub struct CalibrationTable {
pub values: BTreeMap<String, f32>,
}Expand description
Stores per-extractor calibration values (loaded from eval results).
Fields§
§values: BTreeMap<String, f32>Implementations§
Source§impl CalibrationTable
impl CalibrationTable
Sourcepub fn get(&self, extractor_id: &str) -> Option<f32>
pub fn get(&self, extractor_id: &str) -> Option<f32>
Look up the calibration multiplier for an extractor.
Returns None for unmeasured extractors; the caller applies the prior.
Trait Implementations§
Source§impl Clone for CalibrationTable
impl Clone for CalibrationTable
Source§fn clone(&self) -> CalibrationTable
fn clone(&self) -> CalibrationTable
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 moreSource§impl Debug for CalibrationTable
impl Debug for CalibrationTable
Source§impl Default for CalibrationTable
impl Default for CalibrationTable
Source§fn default() -> CalibrationTable
fn default() -> CalibrationTable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CalibrationTable
impl<'de> Deserialize<'de> for CalibrationTable
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
Auto Trait Implementations§
impl Freeze for CalibrationTable
impl RefUnwindSafe for CalibrationTable
impl Send for CalibrationTable
impl Sync for CalibrationTable
impl Unpin for CalibrationTable
impl UnsafeUnpin for CalibrationTable
impl UnwindSafe for CalibrationTable
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