Struct probability::prelude::Lognormal
[−]
[src]
pub struct Lognormal { // some fields omitted }
A lognormal distribution.
Methods
impl Lognormal
[src]
fn new(mu: f64, sigma: f64) -> Self
Create a lognormal distribution with location mu
and scale sigma
.
It should hold that sigma > 0
.
fn mu(&self) -> f64
Return the location parameter.
fn sigma(&self) -> f64
Return the scale parameter.
Trait Implementations
impl Copy for Lognormal
[src]
impl Clone for Lognormal
[src]
fn clone(&self) -> Lognormal
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 Default for Lognormal
[src]
impl Continuous for Lognormal
[src]
impl Distribution for Lognormal
[src]
type Value = f64
The type of outcomes.
fn distribution(&self, x: f64) -> f64
Compute the cumulative distribution function.