[][src]Struct probability::prelude::Beta

pub struct Beta { /* fields omitted */ }

A beta distribution.

Methods

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 Continuous 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]

fn deviation(&self) -> f64[src]

Compute the standard deviation.

impl Clone for Beta[src]

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

Performs copy-assignment from source. Read more

impl Copy for Beta[src]

impl Debug for Beta[src]

Auto Trait Implementations

impl Send for Beta

impl Sync for Beta

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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