Skip to content

Commit

Permalink
add missing word
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Sep 12, 2024
1 parent 4940b94 commit d6d0fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 10_StochasticContinuous_practical.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SIR_gillespie <- function(init_state, parms, tf) {
time <- time + rexp(n = 1, rate = sum(rates))
## check if next event is supposed to happen before end time
if (time <= tf) {
## determine the type of the next
## determine the type of the next event
next_event <- sample(x = length(rates), size = 1, prob = rates)
## change to name
next_event <- names(rates)[next_event]
Expand Down
2 changes: 1 addition & 1 deletion 10_StochasticContinuous_solutions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ SIR_gillespie <- function(init_state, parms, tf) {
time <- time + rexp(n = 1, rate = sum(rates))
## check if next event is supposed to happen before end time
if (time <= tf) {
## determine the type of the next
## determine the type of the next event
next_event <- sample(x = length(rates), size = 1, prob = rates)
## change to name
next_event <- names(rates)[next_event]
Expand Down

0 comments on commit d6d0fa1

Please sign in to comment.