aboutsummaryrefslogtreecommitdiff
path: root/vignettes/compiled_models.Rmd
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-06-21 18:16:08 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-06-21 18:16:08 +0200
commit5bd8716b2e4c880b798d1e5e231d49816bbdebd1 (patch)
tree0e1b51583d185f191e91d8358d5660e2a17f513b /vignettes/compiled_models.Rmd
parent46b8c7507d2d5fbf0741aeade5b0e7b0614f753f (diff)
Rebuild vignettes with the released package installed
Diffstat (limited to 'vignettes/compiled_models.Rmd')
-rw-r--r--vignettes/compiled_models.Rmd14
1 files changed, 9 insertions, 5 deletions
diff --git a/vignettes/compiled_models.Rmd b/vignettes/compiled_models.Rmd
index 5d83cf3a..3b24acbb 100644
--- a/vignettes/compiled_models.Rmd
+++ b/vignettes/compiled_models.Rmd
@@ -53,9 +53,11 @@ rownames(smb.1) <- c("deSolve, not compiled", "Eigenvalue based", "deSolve, comp
print(smb.1)
```
-We see that using the compiled model is almost a factor of 8 faster than using the R version
-with the default ode solver, and it is even faster than the Eigenvalue based solution implemented
-in R which does not need iterative solution of the ODEs:
+We see that using the compiled model is by a factor of
+`r round(smb.1["deSolve, not compiled", "median"]/smb.1["deSolve, compiled", "median"], 1)`
+faster than using the R version with the default ode solver, and it is even
+faster than the Eigenvalue based solution implemented in R which does not need
+iterative solution of the ODEs:
```{r}
smb.1["median"]/smb.1["deSolve, compiled", "median"]
@@ -81,5 +83,7 @@ smb.2["median"]/smb.2["deSolve, compiled", "median"]
```
-Here we get a performance benefit of more than a factor of 10 using the version
-of the differential equation model compiled from C code using the inline package!
+Here we get a performance benefit of a factor of
+`r round(smb.2["deSolve, not compiled", "median"]/smb.2["deSolve, compiled", "median"], 1)`
+using the version of the differential equation model compiled from C code using
+the inline package!

Contact - Imprint