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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for PHREDProb

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PHREDProb

Formats the value using the given formatter. Read more

impl From<f64> for PHREDProb

Performs the conversion.

impl From<PHREDProb> for f64

Performs the conversion.

impl Deref for PHREDProb

The resulting type after dereferencing.

Dereferences the value.

impl Add<PHREDProb> for PHREDProb

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<&'a PHREDProb> for &'a PHREDProb

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<&'a PHREDProb> for PHREDProb

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<PHREDProb> for &'a PHREDProb

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<PHREDProb> for PHREDProb

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<&'a PHREDProb> for &'a PHREDProb

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<&'a PHREDProb> for PHREDProb

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<PHREDProb> for &'a PHREDProb

The resulting type after applying the - operator.

Performs the - operation.

impl From<PHREDProb> for Prob
[src]

Performs the conversion.

impl From<PHREDProb> for LogProb
[src]

Performs the conversion.

impl From<Prob> for PHREDProb
[src]

Performs the conversion.

impl From<LogProb> for PHREDProb
[src]

Performs the conversion.

impl Default for PHREDProb
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for PHREDProb

impl Sync for PHREDProb