Skip to content

Commit

Permalink
Include gif
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Solymos <psolymos@gmail.com>
  • Loading branch information
psolymos committed Oct 19, 2023
1 parent c720973 commit 0647105
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ knitr::opts_chunk$set(
set.seed(0)
```

# bSims: Bird Point Count Simulator <img src="https://raw.githubusercontent.com/psolymos/bSims/master/bsims.gif" align="right" style="padding-left:10px;background-color:white;" />
# bSims: Bird Point Count Simulator

<img src="https://raw.githubusercontent.com/psolymos/bSims/master/bsims.gif" align="right" style="padding-left:10px;background-color:white;" />

A highly scientific and utterly addictive bird point count simulator to test statistical assumptions and to aid survey design.

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bSims: Bird Point Count Simulator
# bSims: Bird Point Count Simulator

<img src="https://raw.githubusercontent.com/psolymos/bSims/master/bsims.gif" align="right" style="padding-left:10px;background-color:white;" />

Expand Down Expand Up @@ -176,23 +176,23 @@ nc <- 2 # number of cores
## sequential
system.time(bb <- b$replicate(B, cl=NULL))
#> user system elapsed
#> 0.226 0.001 0.228
#> 0.225 0.001 0.227

## parallel clusters
cl <- makeCluster(nc)
## note: loading the package is optional
system.time(clusterEvalQ(cl, library(bSims)))
#> user system elapsed
#> 0.001 0.000 0.521
#> 0.001 0.000 0.519
system.time(bb <- b$replicate(B, cl=cl))
#> user system elapsed
#> 0.004 0.001 0.185
#> 0.004 0.001 0.188
stopCluster(cl)

## parallel forking
if (.Platform$OS.type != "windows") {
system.time(bb <- b$replicate(B, cl=nc))
}
#> user system elapsed
#> 0.119 0.034 0.152
#> 0.128 0.032 0.168
```

0 comments on commit 0647105

Please sign in to comment.