Struct bio::stats::probs::Prob []

pub struct Prob(pub f64);

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]

[src]

Methods from Deref<Target = f64>

Trait Implementations

impl PartialEq for Prob

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

This method tests for !=.

impl PartialOrd for Prob

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 Prob

impl Clone for Prob

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Prob

Formats the value using the given formatter. Read more

impl Default for Prob

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

impl From<f64> for Prob

Performs the conversion.

impl From<Prob> for f64

Performs the conversion.

impl Deref for Prob

The resulting type after dereferencing.

Dereferences the value.

impl Add<Prob> for Prob

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Prob> for Prob

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<Prob> for Prob

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<&'a Prob> for &'a Prob

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<&'a Prob> for Prob

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<Prob> for &'a Prob

The resulting type after applying the * operator.

Performs the * operation.

impl Div<Prob> for Prob

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<&'a Prob> for &'a Prob

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<&'a Prob> for Prob

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<Prob> for &'a Prob

The resulting type after applying the / operator.

Performs the / operation.

impl From<LogProb> for Prob
[src]

[src]

Performs the conversion.

impl From<PHREDProb> for Prob
[src]

[src]

Performs the conversion.

impl From<Prob> for LogProb
[src]

[src]

Performs the conversion.

impl From<Prob> for PHREDProb
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Prob

impl Sync for Prob