Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bentriou Mahmoud
MarkovProcesses.jl
Commits
ec105c9a
Commit
ec105c9a
authored
Feb 12, 2021
by
Bentriou Mahmoud
Browse files
fix in sir tauleap model
parent
c7e07a4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/SIR_tauleap.jl
View file @
ec105c9a
...
...
@@ -23,8 +23,8 @@ t0_SIR_tauleap = 0.0
# column-major order
nu_1
=
(
-
1
,
1
,
0
)
nu_2
=
(
0
,
-
1
,
1
)
nbr_R1
=
rand
(
Poisson
(
a1
*
tau
))
nbr_R2
=
rand
(
Poisson
(
a2
*
tau
))
nbr_R1
=
(
a1
>
0.0
)
?
rand
(
Poisson
(
a1
*
tau
))
:
0.0
nbr_R2
=
(
a2
>
0.0
)
?
rand
(
Poisson
(
a2
*
tau
))
:
0.0
for
i
=
1
:
3
@inbounds
xnplus1
[
i
]
=
xn
[
i
]
+
nbr_R1
*
nu_1
[
i
]
+
nbr_R2
*
nu_2
[
i
]
end
...
...
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