Struct bio::stats::probs::PHREDProb
[−]
pub struct PHREDProb(pub f64);
A newtype for PHRED-scale probabilities.
Example
#[macro_use] extern crate approx; use bio::stats::{PHREDProb, Prob}; let p = PHREDProb::from(Prob(0.5)); assert_relative_eq!(*Prob::from(p), *Prob(0.5));
Methods from Deref<Target = f64>
Trait Implementations
impl PartialEq for PHREDProb
fn eq(&self, __arg_0: &PHREDProb) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PHREDProb) -> bool
This method tests for !=
.
impl PartialOrd for PHREDProb
fn partial_cmp(&self, __arg_0: &PHREDProb) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &PHREDProb) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &PHREDProb) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &PHREDProb) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &PHREDProb) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Copy for PHREDProb
impl Clone for PHREDProb
fn clone(&self) -> PHREDProb
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PHREDProb
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<f64> for PHREDProb
impl From<PHREDProb> for f64
impl Deref for PHREDProb
type Target = f64
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
Dereferences the value.
impl Add<PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> PHREDProb
Performs the +
operation.
impl<'a> Add<&'a PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> PHREDProb
Performs the +
operation.
impl<'a> Add<&'a PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: &'a PHREDProb) -> PHREDProb
Performs the +
operation.
impl<'a> Add<PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: PHREDProb) -> PHREDProb
Performs the +
operation.
impl Sub<PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> PHREDProb
Performs the -
operation.
impl<'a> Sub<&'a PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> PHREDProb
Performs the -
operation.
impl<'a> Sub<&'a PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a PHREDProb) -> PHREDProb
Performs the -
operation.
impl<'a> Sub<PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: PHREDProb) -> PHREDProb
Performs the -
operation.