Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
bvictor
ABMEv
Commits
61201fb0
Commit
61201fb0
authored
Nov 05, 2020
by
Victor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changing bm dm ABMEv.jl
parent
ee448857
Pipeline
#77547
passed with stage
in 21 minutes and 1 second
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/algo/ABMEv_CFM.jl
src/algo/ABMEv_CFM.jl
+1
-1
No files found.
src/algo/ABMEv_CFM.jl
View file @
61201fb0
...
...
@@ -31,7 +31,7 @@ function updateWorld!(w::World{A,S,T},c::CFM) where {A,S,T}
alive
=
agents
(
w
)
# Total rate of events
n
=
size
(
w
)
Cbar
=
bm
+
dm
*
n
Cbar
=
(
bm
+
dm
)
*
n
dt
=
rand
(
Exponential
(
Cbar
))
/
n
update_clock!
(
w
,
dt
)
i
=
rand
(
1
:
n
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment