pub struct RelUncertainty<N> { /* private fields */ }Expand description
A relative uncertainty.
Relative uncertainties are characterized by a mean value and a coefficient of variation. The latter is the ratio of the standard deviation to the mean value.
Trait Implementations§
Source§impl<N: Float, U: Uncertainty<Float = N>> Add<U> for RelUncertainty<N>
impl<N: Float, U: Uncertainty<Float = N>> Add<U> for RelUncertainty<N>
Source§impl<N: Clone> Clone for RelUncertainty<N>
impl<N: Clone> Clone for RelUncertainty<N>
Source§fn clone(&self) -> RelUncertainty<N>
fn clone(&self) -> RelUncertainty<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<N: Debug> Debug for RelUncertainty<N>
impl<N: Debug> Debug for RelUncertainty<N>
Source§impl<N: Default> Default for RelUncertainty<N>
impl<N: Default> Default for RelUncertainty<N>
Source§fn default() -> RelUncertainty<N>
fn default() -> RelUncertainty<N>
Returns the “default value” for a type. Read more
Source§impl<N: Float, U: Uncertainty<Float = N>> Div<U> for RelUncertainty<N>
impl<N: Float, U: Uncertainty<Float = N>> Div<U> for RelUncertainty<N>
Source§impl<N: Float> From<AbsUncertainty<N>> for RelUncertainty<N>
impl<N: Float> From<AbsUncertainty<N>> for RelUncertainty<N>
Source§fn from(val: AbsUncertainty<N>) -> RelUncertainty<N>
fn from(val: AbsUncertainty<N>) -> RelUncertainty<N>
Converts to this type from the input type.
Source§impl<N: Float + Zero> From<RelUncertainty<N>> for AbsUncertainty<N>
impl<N: Float + Zero> From<RelUncertainty<N>> for AbsUncertainty<N>
Source§fn from(val: RelUncertainty<N>) -> AbsUncertainty<N>
fn from(val: RelUncertainty<N>) -> AbsUncertainty<N>
Converts to this type from the input type.
Source§impl<N: Float, U: Uncertainty<Float = N>> Mul<U> for RelUncertainty<N>
impl<N: Float, U: Uncertainty<Float = N>> Mul<U> for RelUncertainty<N>
Source§impl<N: PartialEq> PartialEq for RelUncertainty<N>
impl<N: PartialEq> PartialEq for RelUncertainty<N>
Source§impl<N: Float, U: Uncertainty<Float = N>> Sub<U> for RelUncertainty<N>
impl<N: Float, U: Uncertainty<Float = N>> Sub<U> for RelUncertainty<N>
Source§impl<N: Float + Zero> Uncertainty for RelUncertainty<N>
impl<N: Float + Zero> Uncertainty for RelUncertainty<N>
fn new(mean: N, coefficient_of_variation: N) -> RelUncertainty<N>
Source§fn standard_deviation(&self) -> N
fn standard_deviation(&self) -> N
The standard deviation of the value
Source§fn coefficient_of_variation(&self) -> N
fn coefficient_of_variation(&self) -> N
The coefficient of variation is the ratio of the standard deviation and the mean. Read more
Source§fn uncertainty(&self) -> N
fn uncertainty(&self) -> N
The actual uncertainty of the concrete type. This will depend on whether the implementor
represent a relative or absolute uncertainty.
Source§fn is_certain(&self) -> bool
fn is_certain(&self) -> bool
Returns true if the uncertainty is zero. Read more
impl<N: Copy> Copy for RelUncertainty<N>
impl<N> StructuralPartialEq for RelUncertainty<N>
Auto Trait Implementations§
impl<N> Freeze for RelUncertainty<N>where
N: Freeze,
impl<N> RefUnwindSafe for RelUncertainty<N>where
N: RefUnwindSafe,
impl<N> Send for RelUncertainty<N>where
N: Send,
impl<N> Sync for RelUncertainty<N>where
N: Sync,
impl<N> Unpin for RelUncertainty<N>where
N: Unpin,
impl<N> UnwindSafe for RelUncertainty<N>where
N: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)