Learn R Programming

highriskzone (version 1.4.9)

thin: Thinning of the observations (for evaluating the method)

Description

The thinning is done by drawing independently from a Bernoulli distribution. This function is needed for functions eval_method, sim_clintens, sim_intens

Usage

thin(full, nxprob)

Value

A list of observed and unobserved point patterns. Both of class ppp.

Arguments

full

all observations of the point pattern

nxprob

probability of having unobserved events

See Also

rbinom, ppp

Examples

Run this code
 data(craterB)
 thdata <- thin(craterB, nxprob=0.1)
 thdata
 plot(thdata$observed); points(thdata$unobserved, col=4)

Run the code above in your browser using DataLab