Struct probability::distribution::Beta[][src]

pub struct Beta { /* fields omitted */ }

A beta distribution.

Implementations

impl Beta[src]

pub fn new(alpha: f64, beta: f64, a: f64, b: f64) -> Self[src]

Create a beta distribution with shape parameters alpha and beta on interval [a, b].

It should hold that alpha > 0, beta > 0, and a < b.

pub fn alpha(&self) -> f64[src]

Return the first shape parameter.

pub fn beta(&self) -> f64[src]

Return the second shape parameter.

pub fn a(&self) -> f64[src]

Return the left endpoint of the support.

pub fn b(&self) -> f64[src]

Return the right endpoint of the support.

Trait Implementations

impl Clone for Beta[src]

impl Continuous for Beta[src]

impl Copy for Beta[src]

impl Debug for Beta[src]

impl Distribution for Beta[src]

type Value = f64

The type of outcomes.

impl Entropy for Beta[src]

impl Inverse for Beta[src]

impl Kurtosis for Beta[src]

impl Mean for Beta[src]

impl Median for Beta[src]

impl Modes for Beta[src]

impl Sample for Beta[src]

impl Skewness for Beta[src]

impl Variance for Beta[src]

Auto Trait Implementations

impl RefUnwindSafe for Beta

impl Send for Beta

impl Sync for Beta

impl Unpin for Beta

impl UnwindSafe for Beta

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.