Skip to content

Commit

Permalink
Simulate bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dm13450 committed Jun 7, 2021
1 parent 1ff55a3 commit b0aef67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulate.jl
Expand Up @@ -55,7 +55,7 @@ function poisson_simulation(rate::Number, maxT::Number)
end

function poisson_simulation(rate::Function, maxT::Number)
lambda_max = 1.1*maximum(rate(range(0, maxT, length=1000)))
lambda_max = 1.1*maximum(rate(collect(range(0, maxT, length=1000))))
poisson_simulation(rate, maxT, lambda_max)
end

Expand Down

0 comments on commit b0aef67

Please sign in to comment.