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

View source: R/simulationbase.R

thinR Documentation

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)

Arguments

full

all observations of the point pattern

nxprob

probability of having unobserved events

Value

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

See Also

rbinom, ppp

Examples

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

highriskzone documentation built on Aug. 29, 2023, 5:10 p.m.