Skip to content

Commit

Permalink
Fix invalid k letter in Poisson formula docs.
Browse files Browse the repository at this point in the history
For some reason, these formulae used a mixture of `k` and `x` for the same parameter. I haven't checked whether this problem is spread more widely within the docs though.
  • Loading branch information
iago-lito authored Aug 7, 2023
1 parent 5411ba7 commit 80c1fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/distribution/poisson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl Discrete<u64, f64> for Poisson {
/// # Formula
///
/// ```ignore
/// (λ^k * e^(-λ)) / x!
/// (λ^x * e^(-λ)) / x!
/// ```
///
/// where `λ` is the rate
Expand All @@ -244,7 +244,7 @@ impl Discrete<u64, f64> for Poisson {
/// # Formula
///
/// ```ignore
/// ln((λ^k * e^(-λ)) / x!)
/// ln((λ^x * e^(-λ)) / x!)
/// ```
///
/// where `λ` is the rate
Expand Down

0 comments on commit 80c1fd4

Please sign in to comment.