Last chance! 50% off unlimited learning
Sale ends in
Simulates a Boolean model of discs with log normal radii by first simulating a Poisson point process and then placing discs of random radii around each point (the radii are generated using a log normal distribution).
rblnd(obswin, bufferdist, lambda, meanlog, sdlog, seed = NULL)
An owin
object specifying the desired simulation region
A distance to expand obswin
so that discs with centres near obswin
are also simulated.
For the distribution of radii. The logarithm of the distribution is set to have mean meanlog
.
For the distribution of radii. The logarithm of the distribution is set to have standard deviation sdlog
Optional input (default is NULL
). Is an integer passed to set.seed
. Used to reproduce patterns exactly.
Returns an owin
object cropped to obswin
.
A good choice of bufferdist
is required and will be sensitive to the distribution of radii.
The point process needs to be simulated in a larger region than the desired observation window to account for the possibility of discs that intersect the observation window, but have germs outside the observation window.
The point process of germs is generated using spatstat's rpoispp
.
# NOT RUN {
w <- owin(xrange = c(0, 10), yrange = c(0, 10))
xi <- rblnd(w, 2, 0.3, -1, 0.2)
# }
Run the code above in your browser using DataLab