Skip to content

Commit 14ab840

Browse files
committed
Fix docs for writing ode models
1 parent 91b04a6 commit 14ab840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vignettes/writing.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ The interface looks slightly different for ODE models, because we are not updati
299299

300300
```{r, echo = FALSE, results = "asis"}
301301
sirode_code <- readLines("examples/sirode.cpp")
302-
cc_output(sir_code)
302+
cc_output(sirode_code)
303303
```
304304

305305
We have made changes to the annotations, replaced `update` with `rhs` and updated `compare_data`, otherwise everything remains the same (except for a minor change dropping the `exp_noise` parameter which was not needed here).
@@ -327,13 +327,13 @@ stopifnot(all(diff(vapply(methods_sirode, "[[", 1, 1)) > 0))
327327
The `rhs` method follows the `sir` model's update one closely, but returns rates into `state_deriv` rather than updating `state_next`. Note that this function does not accept an `rng_state` argument.
328328

329329
```{r, echo = FALSE, results = "asis"}
330-
cc_output(sir_code[methods_sir$rhs])
330+
cc_output(sirode_code[methods_sirode$rhs])
331331
```
332332

333333
The `compare_data` method has changed slightly as we no longer add random noise to the modelled data:
334334

335335
```{r, echo = FALSE, results = "asis"}
336-
cc_output(sir_code[methods_sir$compare_data])
336+
cc_output(sirode_code[methods_sirode$compare_data])
337337
```
338338

339339
# Continuous time models with additional output

0 commit comments

Comments
 (0)