Commit 61201fb0 authored by Victor's avatar Victor

changing bm dm ABMEv.jl

parent ee448857
Pipeline #77547 passed with stage
in 21 minutes and 1 second
...@@ -31,7 +31,7 @@ function updateWorld!(w::World{A,S,T},c::CFM) where {A,S,T} ...@@ -31,7 +31,7 @@ function updateWorld!(w::World{A,S,T},c::CFM) where {A,S,T}
alive = agents(w) alive = agents(w)
# Total rate of events # Total rate of events
n = size(w) n = size(w)
Cbar = bm + dm*n Cbar = (bm + dm)*n
dt = rand(Exponential(Cbar)) / n dt = rand(Exponential(Cbar)) / n
update_clock!(w,dt) update_clock!(w,dt)
i = rand(1:n) i = rand(1:n)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment