@@ -103,9 +103,6 @@ get_table(x)
103103# > 50-100m 3 0 1
104104# > 100-150m 4 1 0
105105# > 150+m 8 3 0
106- ```
107-
108- ``` r
109106
110107head(get_events(a ))
111108# > x y t v a i
@@ -115,9 +112,6 @@ head(get_events(a))
115112# > 4 -2.1041934 -1.6092706 0.03936096 1 295 19
116113# > 5 -4.9531338 -0.4093427 0.04890537 1 217 11
117114# > 6 -3.3127196 -0.2145475 0.08899310 1 215 15
118- ```
119-
120- ``` r
121115
122116head(get_detections(o ))
123117# > x y t v a d f i j
@@ -141,13 +135,21 @@ run_app("distfunH")
141135run_app(" distfunHER" )
142136```
143137
144- Compare simulation settings for single landscape:
138+ Compare simulation settings for a single landscape:
145139
146140``` r
147141run_app(" bsimsH" )
148142run_app(" bsimsHER" )
149143```
150144
145+ The [ Shinylive] ( https://shinylive.io/r/examples/ ) versions of the apps
146+ can be found here:
147+
148+ - [ ` distfunH ` ] ( https://peter.solymos.org/bSims/apps/distfunH/ )
149+ - [ ` distfunHER ` ] ( https://peter.solymos.org/bSims/apps/distfunHER/ )
150+ - [ ` bsimsH ` ] ( https://peter.solymos.org/bSims/apps/bsimsH/ )
151+ - [ ` bsimsHER ` ] ( https://peter.solymos.org/bSims/apps/bsimsHER/ )
152+
151153### Replicating simulations
152154
153155Interactive sessions can be used to explore different settings. Settings
@@ -182,32 +184,23 @@ nc <- 2 # number of cores
182184# # sequential
183185system.time(bb <- b $ replicate(B , cl = NULL ))
184186# > user system elapsed
185- # > 0.232 0.001 0.233
186- ```
187-
188- ``` r
187+ # > 0.235 0.002 0.237
189188
190189# # parallel clusters
191190cl <- makeCluster(nc )
192191# # note: loading the package is optional
193192system.time(clusterEvalQ(cl , library(bSims )))
194193# > user system elapsed
195- # > 0.000 0.000 0.439
196- ```
197-
198- ``` r
194+ # > 0.000 0.000 0.444
199195system.time(bb <- b $ replicate(B , cl = cl ))
200196# > user system elapsed
201- # > 0.004 0.001 0.194
202- ```
203-
204- ``` r
197+ # > 0.004 0.001 0.189
205198stopCluster(cl )
206199
207200# # parallel forking
208201if (.Platform $ OS.type != " windows" ) {
209202 system.time(bb <- b $ replicate(B , cl = nc ))
210203}
211204# > user system elapsed
212- # > 0.119 0.046 0.182
205+ # > 0.127 0.048 0.177
213206```
0 commit comments