[][src]Struct rstat::Probability

pub struct Probability(_);

Methods

impl Probability[src]

pub fn new(p: f64) -> ProbabilityResult<Probability>[src]

pub fn zero() -> Probability[src]

pub fn half() -> Probability[src]

pub fn one() -> Probability[src]

pub fn powf(self, e: f64) -> Probability[src]

pub fn powi(self, e: i32) -> Probability[src]

pub fn normalised<P: Into<Probability>>(probs: Vec<P>) -> Vec<Probability>[src]

Trait Implementations

impl Clone for Probability[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<f64> for Probability[src]

impl From<Probability> for f64[src]

impl Copy for Probability[src]

impl PartialOrd<Probability> for Probability[src]

impl PartialEq<Probability> for Probability[src]

impl Display for Probability[src]

impl Debug for Probability[src]

impl Add<Probability> for Probability[src]

type Output = Probability

The resulting type after applying the + operator.

impl Sub<Probability> for Probability[src]

type Output = Probability

The resulting type after applying the - operator.

impl Mul<Probability> for Probability[src]

type Output = Probability

The resulting type after applying the * operator.

impl Div<Probability> for Probability[src]

type Output = Probability

The resulting type after applying the / operator.

impl Not for Probability[src]

type Output = Probability

The resulting type after applying the ! operator.

Auto Trait Implementations

impl Send for Probability

impl Sync for Probability

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.