pub struct NumericTolerance {
pub absolute_max: f64,
pub relative_l2_max: f64,
pub cosine_similarity_min: f64,
}Expand description
Absolute and relative thresholds for ordinary floating-point observations.
Fields§
§absolute_max: f64Largest accepted absolute element error.
relative_l2_max: f64Largest accepted L2 error relative to the reference norm.
cosine_similarity_min: f64Smallest accepted cosine similarity.
Implementations§
Trait Implementations§
Source§impl Clone for NumericTolerance
impl Clone for NumericTolerance
Source§fn clone(&self) -> NumericTolerance
fn clone(&self) -> NumericTolerance
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 NumericTolerance
Source§impl Debug for NumericTolerance
impl Debug for NumericTolerance
Source§impl<'de> Deserialize<'de> for NumericTolerance
impl<'de> Deserialize<'de> for NumericTolerance
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 PartialEq for NumericTolerance
impl PartialEq for NumericTolerance
Source§impl Serialize for NumericTolerance
impl Serialize for NumericTolerance
impl StructuralPartialEq for NumericTolerance
Auto Trait Implementations§
impl Freeze for NumericTolerance
impl RefUnwindSafe for NumericTolerance
impl Send for NumericTolerance
impl Sync for NumericTolerance
impl Unpin for NumericTolerance
impl UnsafeUnpin for NumericTolerance
impl UnwindSafe for NumericTolerance
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