pub struct AbsUncertainty<N> { /* private fields */ }Expand description
An absolute uncertainty.
Absolute uncertainties are values that are characterized by a mean, and a standard deviation.
Trait Implementations§
Source§impl<N, U> Add<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
impl<N, U> Add<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
Source§type Output = AbsUncertainty<N>
type Output = AbsUncertainty<N>
The resulting type after applying the
+ operator.Source§fn add(self, other: U) -> AbsUncertainty<N>
fn add(self, other: U) -> AbsUncertainty<N>
Performs the
+ operation. Read moreSource§impl<N> Clone for AbsUncertainty<N>where
N: Clone,
impl<N> Clone for AbsUncertainty<N>where
N: Clone,
Source§fn clone(&self) -> AbsUncertainty<N>
fn clone(&self) -> AbsUncertainty<N>
Returns a duplicate 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 for AbsUncertainty<N>where
N: Debug,
impl<N> Debug for AbsUncertainty<N>where
N: Debug,
Source§impl<N> Default for AbsUncertainty<N>where
N: Default,
impl<N> Default for AbsUncertainty<N>where
N: Default,
Source§fn default() -> AbsUncertainty<N>
fn default() -> AbsUncertainty<N>
Returns the “default value” for a type. Read more
Source§impl<N> Display for AbsUncertainty<N>where
N: Display,
impl<N> Display for AbsUncertainty<N>where
N: Display,
Source§impl<N, U> Div<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
impl<N, U> Div<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
Source§type Output = AbsUncertainty<N>
type Output = AbsUncertainty<N>
The resulting type after applying the
/ operator.Source§fn div(self, other: U) -> AbsUncertainty<N>
fn div(self, other: U) -> AbsUncertainty<N>
Performs the
/ operation. Read moreSource§impl<N> From<AbsUncertainty<N>> for RelUncertainty<N>where
N: Float,
impl<N> From<AbsUncertainty<N>> for RelUncertainty<N>where
N: Float,
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> From<RelUncertainty<N>> for AbsUncertainty<N>
impl<N> 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, U> Mul<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
impl<N, U> Mul<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
Source§type Output = AbsUncertainty<N>
type Output = AbsUncertainty<N>
The resulting type after applying the
* operator.Source§fn mul(self, other: U) -> AbsUncertainty<N>
fn mul(self, other: U) -> AbsUncertainty<N>
Performs the
* operation. Read moreSource§impl<N> Neg for AbsUncertainty<N>where
N: Float,
impl<N> Neg for AbsUncertainty<N>where
N: Float,
Source§impl<N> PartialEq for AbsUncertainty<N>where
N: PartialEq,
impl<N> PartialEq for AbsUncertainty<N>where
N: PartialEq,
Source§impl<N, U> Sub<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
impl<N, U> Sub<U> for AbsUncertainty<N>where
N: Float,
U: Uncertainty<Float = N>,
Source§type Output = AbsUncertainty<N>
type Output = AbsUncertainty<N>
The resulting type after applying the
- operator.Source§fn sub(self, other: U) -> AbsUncertainty<N>
fn sub(self, other: U) -> AbsUncertainty<N>
Performs the
- operation. Read moreSource§impl<N> Uncertainty for AbsUncertainty<N>
impl<N> Uncertainty for AbsUncertainty<N>
fn new(mean: N, standard_deviation: N) -> AbsUncertainty<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
Source§impl<N> Zero for AbsUncertainty<N>
impl<N> Zero for AbsUncertainty<N>
impl<N> Copy for AbsUncertainty<N>where
N: Copy,
impl<N> StructuralPartialEq for AbsUncertainty<N>
Auto Trait Implementations§
impl<N> Freeze for AbsUncertainty<N>where
N: Freeze,
impl<N> RefUnwindSafe for AbsUncertainty<N>where
N: RefUnwindSafe,
impl<N> Send for AbsUncertainty<N>where
N: Send,
impl<N> Sync for AbsUncertainty<N>where
N: Sync,
impl<N> Unpin for AbsUncertainty<N>where
N: Unpin,
impl<N> UnwindSafe for AbsUncertainty<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