View source: R/simulationbase.R
thin | R Documentation |
The thinning is done by drawing independently from a Bernoulli distribution. This function is needed for functions eval_method, sim_clintens, sim_intens
thin(full, nxprob)
full |
all observations of the point pattern |
nxprob |
probability of having unobserved events |
A list of observed and unobserved point patterns. Both of class ppp.
rbinom
, ppp
data(craterB)
thdata <- thin(craterB, nxprob=0.1)
thdata
plot(thdata$observed); points(thdata$unobserved, col=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.