Struct probability::distribution::Uniform
[−]
[src]
pub struct Uniform { // some fields omitted }
A continuous uniform distribution.
Methods
impl Uniform
[src]
fn new(a: f64, b: f64) -> Uniform
Create a uniform distribution on interval [a, b]
.
It should hold that a < b
.
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 Uniform
[src]
impl Clone for Uniform
[src]
fn clone(&self) -> Uniform
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 Uniform
[src]
type Value = f64
The type of outcomes.
fn cdf(&self, x: f64) -> f64
Compute the distribution function. Read more