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
impl PartialEq for PHREDProb
fn eq(&self, other: &PHREDProb) -> bool
fn eq(&self, other: &PHREDProb) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PHREDProb) -> bool
fn ne(&self, other: &PHREDProb) -> bool
This method tests for !=
.
impl PartialOrd for PHREDProb
impl PartialOrd for PHREDProb
fn partial_cmp(&self, other: &PHREDProb) -> Option<Ordering>
fn partial_cmp(&self, other: &PHREDProb) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &PHREDProb) -> bool
fn lt(&self, other: &PHREDProb) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &PHREDProb) -> bool
fn le(&self, other: &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, other: &PHREDProb) -> bool
fn gt(&self, other: &PHREDProb) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &PHREDProb) -> bool
fn ge(&self, other: &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 Copy for PHREDProb
impl Clone for PHREDProb
impl Clone for PHREDProb
fn clone(&self) -> PHREDProb
fn clone(&self) -> PHREDProb
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PHREDProb
impl Debug for PHREDProb
impl From<f64> for PHREDProb
impl From<f64> for PHREDProb
impl From<PHREDProb> for f64
impl From<PHREDProb> for f64
impl Deref for PHREDProb
impl Deref for PHREDProb
type Target = f64
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
fn deref(&self) -> &Self::Target
Dereferences the value.
impl Add<PHREDProb> for PHREDProb
impl Add<PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> PHREDProb
fn add(self, rhs: Self) -> PHREDProb
Performs the +
operation.
impl<'a> Add<&'a PHREDProb> for &'a PHREDProb
impl<'a> Add<&'a PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> PHREDProb
fn add(self, rhs: Self) -> PHREDProb
Performs the +
operation.
impl<'a> Add<&'a PHREDProb> for PHREDProb
impl<'a> Add<&'a PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: &'a PHREDProb) -> PHREDProb
fn add(self, rhs: &'a PHREDProb) -> PHREDProb
Performs the +
operation.
impl<'a> Add<PHREDProb> for &'a PHREDProb
impl<'a> Add<PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the +
operator.
fn add(self, rhs: PHREDProb) -> PHREDProb
fn add(self, rhs: PHREDProb) -> PHREDProb
Performs the +
operation.
impl Sub<PHREDProb> for PHREDProb
impl Sub<PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> PHREDProb
fn sub(self, rhs: Self) -> PHREDProb
Performs the -
operation.
impl<'a> Sub<&'a PHREDProb> for &'a PHREDProb
impl<'a> Sub<&'a PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> PHREDProb
fn sub(self, rhs: Self) -> PHREDProb
Performs the -
operation.
impl<'a> Sub<&'a PHREDProb> for PHREDProb
impl<'a> Sub<&'a PHREDProb> for PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a PHREDProb) -> PHREDProb
fn sub(self, rhs: &'a PHREDProb) -> PHREDProb
Performs the -
operation.
impl<'a> Sub<PHREDProb> for &'a PHREDProb
impl<'a> Sub<PHREDProb> for &'a PHREDProb
type Output = PHREDProb
The resulting type after applying the -
operator.
fn sub(self, rhs: PHREDProb) -> PHREDProb
fn sub(self, rhs: PHREDProb) -> PHREDProb
Performs the -
operation.
impl From<PHREDProb> for Prob
[src]
impl From<PHREDProb> for Prob
impl From<PHREDProb> for LogProb
[src]
impl From<PHREDProb> for LogProb
impl From<Prob> for PHREDProb
[src]
impl From<Prob> for PHREDProb
impl From<LogProb> for PHREDProb
[src]
impl From<LogProb> for PHREDProb
impl Default for PHREDProb
[src]
impl Default for PHREDProb