[−]Struct bio::stats::probs::Prob
A newtype for probabilities.
Example
#[macro_use] extern crate approx; use bio::stats::Prob; let p = Prob(0.5); let q = Prob(0.2); assert_relative_eq!(*(p + q), *Prob(0.7));
Methods
impl Prob
[src]
Trait Implementations
impl Clone for Prob
fn clone(&self) -> Prob
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Prob
impl From<f64> for Prob
impl From<Prob> for f64
impl From<LogProb> for Prob
[src]
impl From<PHREDProb> for Prob
[src]
impl From<Prob> for LogProb
[src]
impl From<Prob> for PHREDProb
[src]
impl Default for Prob
impl PartialEq<Prob> for Prob
impl PartialOrd<Prob> for Prob
fn partial_cmp(&self, other: &Prob) -> Option<Ordering>
fn lt(&self, other: &Prob) -> bool
fn le(&self, other: &Prob) -> bool
fn gt(&self, other: &Prob) -> bool
fn ge(&self, other: &Prob) -> bool
impl Debug for Prob
impl Div<Prob> for Prob
impl<'a> Div<&'a Prob> for &'a Prob
impl<'a> Div<&'a Prob> for Prob
type Output = Prob
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Prob) -> Prob
impl<'a> Div<Prob> for &'a Prob
impl Add<Prob> for Prob
impl<'a> Add<&'a Prob> for &'a Prob
impl<'a> Add<&'a Prob> for Prob
type Output = Prob
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Prob) -> Prob
impl<'a> Add<Prob> for &'a Prob
impl Sub<Prob> for Prob
impl<'a> Sub<&'a Prob> for &'a Prob
impl<'a> Sub<&'a Prob> for Prob
type Output = Prob
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Prob) -> Prob
impl<'a> Sub<Prob> for &'a Prob
impl Mul<Prob> for Prob
impl<'a> Mul<&'a Prob> for &'a Prob
impl<'a> Mul<&'a Prob> for Prob
type Output = Prob
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Prob) -> Prob
impl<'a> Mul<Prob> for &'a Prob
impl Deref for Prob
impl Zero for Prob
[src]
fn zero() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn set_zero(&mut self)
[src]
Sets self
to the additive identity element of Self
, 0
.
impl Serialize for Prob
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Prob
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Prob
impl Unpin for Prob
impl Send for Prob
impl UnwindSafe for Prob
impl RefUnwindSafe for Prob
Blanket Implementations
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<M> Measure for M where
M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone,
[src]
M: Debug + PartialOrd<M> + Add<M, Output = M> + Default + Clone,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,