Skip to content

Commit

Permalink
Update src/distribution/exponential.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Warren Weckesser <[email protected]>
  • Loading branch information
2 people authored and YeungOnion committed May 23, 2024
1 parent 2db6bdb commit fc29814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distribution/exponential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl ContinuousCDF<f64, f64> for Exp {
///
/// where `p` is the probability and `λ` is the rate
fn inverse_cdf(&self, p: f64) -> f64 {
-(1.0 - p).ln() / self.rate
-(-p).ln_1p() / self.rate
}
}

Expand Down

0 comments on commit fc29814

Please sign in to comment.