Skip to content

Commit ae49431

Browse files
optimization in factorial(K)
1 parent a3dce73 commit ae49431

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PoissonRandom.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function procf(λ, K::Int, s::Float64)
100100

101101
if K < 10
102102
px = -float(λ)
103-
py = λ^K / prod(1:K)
103+
py = λ^K / prod(2:K)
104104
else
105105
δ = inv(12) / K
106106
δ -= 4.8 * δ^3

0 commit comments

Comments
 (0)