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

pub struct Beta {
    // some fields omitted
}

A beta distribution.

Methods

impl Beta
[src]

fn new(alpha: f64, beta: f64, a: f64, b: f64) -> Beta

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.

fn alpha(&self) -> f64

Return the first shape parameter.

fn beta(&self) -> f64

Return the second shape parameter.

fn a(&self) -> f64

Return the left endpoint of the support.

fn b(&self) -> f64

Return the right endpoint of the support.

Trait Implementations

impl Copy for Beta
[src]

impl Clone for Beta
[src]

fn clone(&self) -> Beta

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Distribution for Beta
[src]

type Value = f64

The type of outcomes.

fn cdf(&self, x: f64) -> f64

Compute the distribution function. Read more

impl Continuous for Beta
[src]

fn pdf(&self, x: f64) -> f64

Compute the probability density function.

impl Entropy for Beta
[src]

fn entropy(&self) -> f64

Compute the differential entropy. Read more

impl Inverse for Beta
[src]

fn inv_cdf(&self, p: f64) -> f64

Compute the inverse of the distribution function.

impl Kurtosis for Beta
[src]

fn kurtosis(&self) -> f64

Compute the excess kurtosis.

impl Mean for Beta
[src]

fn mean(&self) -> f64

Compute the expected value.

impl Median for Beta
[src]

fn median(&self) -> f64

Compute the median.

impl Modes for Beta
[src]

fn modes(&self) -> Vec<f64>

Compute the modes.

impl Sample for Beta
[src]

fn sample<S>(&self, source: &mut S) -> f64 where S: Source

Draw a sample.

impl Skewness for Beta
[src]

fn skewness(&self) -> f64

Compute the skewness.

impl Variance for Beta
[src]

fn variance(&self) -> f64

Compute the variance.

fn deviation(&self) -> f64

Compute the standard deviation.

fn var(&self) -> f64

Compute the variance. Read more

fn sd(&self) -> f64

Compute the standard deviation. Read more