[−][src]Struct scicalc_rs::measurement::Measurement
A Measurement 'x' is written as x = (mean +- sigma)
where 'mean' is the mean value
and 'sigma' is the uncertainty(also called error or standard deviation from the mean)
Implementations
impl Measurement
[src]
pub fn new(mean: f64, sigma: f64) -> Measurement
[src]
Trait Implementations
impl Add<Measurement> for Measurement
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: Self) -> Self
[src]
impl Add<f64> for Measurement
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: f64) -> Self
[src]
impl ApproxEq for Measurement
[src]
type Margin = F64Margin
This type type defines a margin within which two values are to be
considered approximately equal. It must implement Default
so that
approx_eq()
can be called on unknown types. Read more
pub fn approx_eq<T: Into<Self::Margin>>(self, other: Self, margin: T) -> bool
[src]
pub fn approx_ne<M>(self, other: Self, margin: M) -> bool where
M: Into<Self::Margin>,
[src]
M: Into<Self::Margin>,
impl Clone for Measurement
[src]
pub fn clone(&self) -> Measurement
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Measurement
[src]
impl Debug for Measurement
[src]
impl Display for Measurement
[src]
impl Div<Measurement> for Measurement
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, other: Self) -> Self
[src]
impl Div<f64> for Measurement
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, other: f64) -> Self
[src]
impl Mul<Measurement> for Measurement
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, other: Self) -> Self
[src]
impl Mul<f64> for Measurement
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, other: f64) -> Self
[src]
impl Neg for Measurement
[src]
impl PartialEq<Measurement> for Measurement
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Sub<Measurement> for Measurement
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, other: Self) -> Self
[src]
impl Sub<f64> for Measurement
[src]
Auto Trait Implementations
impl RefUnwindSafe for Measurement
[src]
impl Send for Measurement
[src]
impl Sync for Measurement
[src]
impl Unpin for Measurement
[src]
impl UnwindSafe for Measurement
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,