Struct probability::distribution::Lognormal [−][src]
pub struct Lognormal { /* fields omitted */ }
A lognormal distribution.
Methods
impl Lognormal
[src]
impl Lognormal
pub fn new(mu: f64, sigma: f64) -> Self
[src]
pub fn new(mu: f64, sigma: f64) -> Self
Create a lognormal distribution with location mu
and scale sigma
.
It should hold that sigma > 0
.
pub fn mu(&self) -> f64
[src]
pub fn mu(&self) -> f64
Return the location parameter.
pub fn sigma(&self) -> f64
[src]
pub fn sigma(&self) -> f64
Return the scale parameter.
Trait Implementations
impl Clone for Lognormal
[src]
impl Clone for Lognormal
fn clone(&self) -> Lognormal
[src]
fn clone(&self) -> Lognormal
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 Lognormal
[src]
impl Copy for Lognormal
impl Debug for Lognormal
[src]
impl Debug for Lognormal
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 Default for Lognormal
[src]
impl Default for Lognormal
impl Continuous for Lognormal
[src]
impl Continuous for Lognormal
impl Distribution for Lognormal
[src]
impl Distribution for Lognormal
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 Lognormal
[src]
impl Entropy for Lognormal
impl Inverse for Lognormal
[src]
impl Inverse for Lognormal
impl Kurtosis for Lognormal
[src]
impl Kurtosis for Lognormal
impl Mean for Lognormal
[src]
impl Mean for Lognormal
impl Median for Lognormal
[src]
impl Median for Lognormal
impl Modes for Lognormal
[src]
impl Modes for Lognormal
impl Sample for Lognormal
[src]
impl Sample for Lognormal
impl Skewness for Lognormal
[src]
impl Skewness for Lognormal
impl Variance for Lognormal
[src]
impl Variance for Lognormal