Learn R Programming

stlnpp (version 0.4.0)

rthin.stlpp: Random thinning

Description

This function applies independent random thinning to a spatio-temporal point pattern on a linear network.

Usage

# S3 method for stlpp
rthin(X, P = P, nsim = 1)

Value

An object of the same kind as X if nsim=1, or a list of such objects if nsim > 1.

Arguments

X

a spatio-temporal point pattern of class stlpp

P

retention probability

nsim

number of simulated realisations to be generated

Author

Mehdi Moradi <m2.moradi@yahoo.com>

Details

See rthin.

References

Moradi, M., & Mateu, J. (2020). First-and second-order characteristics of spatio-temporal point processes on linear networks. Journal of Computational and Graphical Statistics, 29(3), 432-443.

See Also

stlpp, rthin

Examples

Run this code
 
data(Medellin)
rthin(Medellin,P=.5)

Run the code above in your browser using DataLab