There is inconsistency between code and documentation In RustQuant/src/math/distributions/exponential.rs, the documentation requires lambda <= 0.0, while the code checks assert!(lambda > 0.0);
/// # Panics
///
/// Panics if lambda is greater than 0.0
#[must_use]
pub fn new(lambda: f64) -> Self {
assert!(lambda > 0.0);
Self { lambda }
}
There is inconsistency between code and documentation In RustQuant/src/math/distributions/exponential.rs, the documentation requires lambda <= 0.0, while the code checks assert!(lambda > 0.0);