pub struct LogNormal { /* private fields */ }Expand description
Log-normal distribution: if X ~ LogNormal(μ, σ), then ln(X) ~ N(μ, σ²).
§Mathematical Definition
- PDF: (1/(xσ√(2π))) exp(−(ln(x)−μ)²/(2σ²)) for x > 0
- CDF: Φ((ln(x)−μ)/σ)
- Mean: exp(μ + σ²/2)
- Variance: (exp(σ²) − 1) · exp(2μ + σ²)
Reference: Johnson, Kotz & Balakrishnan (1994), Continuous Univariate Distributions, Vol. 1, Chapter 14.
Implementations§
Source§impl LogNormal
impl LogNormal
Trait Implementations§
impl StructuralPartialEq for LogNormal
Auto Trait Implementations§
impl Freeze for LogNormal
impl RefUnwindSafe for LogNormal
impl Send for LogNormal
impl Sync for LogNormal
impl Unpin for LogNormal
impl UnwindSafe for LogNormal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more