Struct probability::distribution::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