Description Examples
Use R package microbenchmark to compare the performance of C functions (gibbsR and Cpp functions (gibbsC.
microbenchmark
gibbsR
gibbsC
1 2 3 4 5 6 7 8
## Not run: tm1 <- microbenchmark::microbenchmark( rnR = gibbsR(2000,1,4,50,10), rnC = gibbsC(2000,1,4,50,10) ) print(summary(tm1)[,c(1,3,5,6)]) ## End(Not run)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.