pub struct MagicParams {
pub tolerance: f64,
pub null_value: f64,
}Expand description
MAGIC tuning parameters.
Fields§
§tolerance: f64Maximum relative error for which a weight-window lower bound is
generated. Elements above it receive null_value.
null_value: f64Lower-bound value assigned where relative error exceeds tolerance.
Trait Implementations§
Source§impl Clone for MagicParams
impl Clone for MagicParams
Source§fn clone(&self) -> MagicParams
fn clone(&self) -> MagicParams
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 MagicParams
Source§impl Debug for MagicParams
impl Debug for MagicParams
Source§impl Default for MagicParams
impl Default for MagicParams
Source§impl PartialEq for MagicParams
impl PartialEq for MagicParams
impl StructuralPartialEq for MagicParams
Auto Trait Implementations§
impl Freeze for MagicParams
impl RefUnwindSafe for MagicParams
impl Send for MagicParams
impl Sync for MagicParams
impl Unpin for MagicParams
impl UnsafeUnpin for MagicParams
impl UnwindSafe for MagicParams
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