Struct probability::distribution::Beta [−][src]
pub struct Beta { /* fields omitted */ }
A beta distribution.
Methods
impl Beta
[src]
impl Beta
pub fn new(alpha: f64, beta: f64, a: f64, b: f64) -> Self
[src]
pub fn new(alpha: f64, beta: f64, a: f64, b: f64) -> Self
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]
pub fn alpha(&self) -> f64
Return the first shape parameter.
pub fn beta(&self) -> f64
[src]
pub fn beta(&self) -> f64
Return the second shape parameter.
pub fn a(&self) -> f64
[src]
pub fn a(&self) -> f64
Return the left endpoint of the support.
pub fn b(&self) -> f64
[src]
pub fn b(&self) -> f64
Return the right endpoint of the support.
Trait Implementations
impl Clone for Beta
[src]
impl Clone for Beta
fn clone(&self) -> Beta
[src]
fn clone(&self) -> Beta
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 Copy for Beta
impl Debug for Beta
[src]
impl Debug for Beta
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Continuous for Beta
[src]
impl Continuous for Beta
impl Distribution for Beta
[src]
impl Distribution for Beta
type Value = f64
The type of outcomes.
fn distribution(&self, x: f64) -> f64
[src]
fn distribution(&self, x: f64) -> f64
Compute the cumulative distribution function.
impl Entropy for Beta
[src]
impl Entropy for Beta
impl Inverse for Beta
[src]
impl Inverse for Beta
impl Kurtosis for Beta
[src]
impl Kurtosis for Beta
impl Mean for Beta
[src]
impl Mean for Beta
impl Median for Beta
[src]
impl Median for Beta
impl Modes for Beta
[src]
impl Modes for Beta
impl Sample for Beta
[src]
impl Sample for Beta
impl Skewness for Beta
[src]
impl Skewness for Beta
impl Variance for Beta
[src]
impl Variance for Beta