rblnd | R Documentation |
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)
obswin |
An |
bufferdist |
A distance to expand |
lambda |
Intensity of the Poisson point process, passed to rpoispp. It could be either a single positive number, or any other object that rpoispp can understand. |
meanlog |
For the distribution of radii. The logarithm of the distribution is set to have mean |
sdlog |
For the distribution of radii. The logarithm of the distribution is set to have standard deviation |
seed |
Optional input (default is |
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
.
Returns an owin
object cropped to obswin
.
A good choice of bufferdist
is required and will be sensitive to the distribution of radii.
w <- owin(xrange = c(0, 10), yrange = c(0, 10)) xi <- rblnd(w, 2, 0.3, -1, 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.