Learn R Programming

spatstat.random (version 3.5-2)

Random Generation Functionality for the 'spatstat' Family

Description

Functionality for random generation of spatial data in the 'spatstat' family of packages. Generates random spatial patterns of points according to many simple rules (complete spatial randomness, Poisson, binomial, random grid, systematic, cell), randomised alteration of patterns (thinning, random shift, jittering), simulated realisations of random point processes including simple sequential inhibition, Matern inhibition models, Neyman-Scott cluster processes (using direct, Brix-Kendall, or hybrid algorithms), log-Gaussian Cox processes, product shot noise cluster processes and Gibbs point processes (using Metropolis-Hastings birth-death-shift algorithm, alternating Gibbs sampler, or coupling-from-the-past perfect simulation). Also generates random spatial patterns of line segments, random tessellations, and random images (random noise, random mosaics). Excludes random generation on a linear network, which is covered by the separate package 'spatstat.linnet'.

Copy Link

Version

Install

install.packages('spatstat.random')

Monthly Downloads

78,002

Version

3.5-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

September 22nd, 2026

Functions in spatstat.random (3.5-2)

rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
methods.clusterprocess

Methods for Cluster Models
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
dpakes

Pakes distribution
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
quadratresample

Resample a Point Pattern by Resampling Quadrats
expand.owin

Apply Expansion Rule
rGRFgauss

Simulate a Gaussian Random Field
gauss.hermite

Gauss-Hermite Quadrature Approximation to Expectation for Normal Distribution
is.stationary

Recognise Stationary and Poisson Point Process Models
rGaussPoisson

Simulate Gauss-Poisson Process
rPSNCP

Simulate Product Shot-noise Cox Process
rMaternII

Simulate Matern Model II
rMaternI

Simulate Matern Model I
rNeymanScott

Simulate Neyman-Scott Process
rMatClust

Simulate Matern Cluster Process
rMosaicField

Mosaic Random Field
rHardcore

Perfect Simulation of the Hardcore Process
rMosaicSet

Mosaic Random Set
rLGCP

Simulate Log-Gaussian Cox Process
rags

Alternating Gibbs Sampler for Multitype Point Processes
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
rPoissonCluster

Simulate Poisson Cluster Process
rStrauss

Perfect Simulation of the Strauss Process
rThomas

Simulate Thomas Process
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
rSSI

Simulate Simple Sequential Inhibition
rPenttinen

Perfect Simulation of the Penttinen Process
rUnround

Random Un-Rounding of Spatial Location
ragsAreaInter

Alternating Gibbs Sampler for Area-Interaction Process
rjitter.psp

Random Perturbation of Line Segment Pattern
rcellnumber

Generate Random Numbers of Points for Cell Process
rdiffuse

Perturb the Points in a Point Pattern According to a Diffusion Process
rlabel

Random Re-Labelling of Point Pattern
ragsMultiHard

Alternating Gibbs Sampler for Multitype Hard Core Process
rcell

Simulate Baddeley-Silverman Cell Process
rknn

Theoretical Distribution of Nearest Neighbour Distance
rclusterBKBC

Simulate Cluster Process using Brix-Kendall Algorithm or Modifications
recipEnzpois

First Reciprocal Moment of the Truncated Poisson Distribution
reach

Interaction Distance of a Point Process Model
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
rmhexpand

Specify Simulation Window or Expansion Rule
rmpoispp

Generate Multitype Poisson Point Pattern
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
rmpoint

Generate N Random Multitype Points
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
rpoispp

Generate Poisson Point Pattern
rnoise

Random Pixel Noise
rpoint3

Generate N Random Points in 3 Dimensions
rpoint

Generate N Random Points
rpoisline

Generate Poisson Random Line Process
rpoisDirichletTess

Poisson Dirichlet Tessellation
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
rtemper

Simulated Annealing or Simulated Tempering for Gibbs Point Processes
rthin

Random Thinning
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
rstrat

Simulate Stratified Random Point Pattern
rthinclumps

Random Thinning of Clumps
rshift.splitppp

Randomly Shift a List of Point Patterns
rpoislinetess

Poisson Line Tessellation
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
runifdisc

Generate N Uniform Random Points in a Disc
rpoistrunc

Truncated Poisson Distribution
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rshift.psp

Randomly Shift a Line Segment Pattern
runifpoint3

Generate N Uniform Random Points in Three Dimensions
will.expand

Test Expansion Rule
rshift.ppp

Randomly Shift a Point Pattern
runifpoint

Generate N Uniform Random Points
runifpointOnLines

Generate N Uniform Random Points On Line Segments
runifpointx

Generate N Uniform Random Points in Any Dimensions
spatstat.random-internal

Internal spatstat.random functions
rshift

Random Shift
spatstat.random-package

The spatstat.random Package
Window.rmhmodel

Extract Window of Spatial Object
clusterkernel

Extract Cluster Offspring Kernel
clusterfield

Field of clusters
clusterradius

Compute or Extract Effective Range of Cluster Kernel
dmixpois

Mixed Poisson Distribution
default.expand

Default Expansion Rule for Simulation of Model
as.owin.rmhmodel

Convert Data To Class owin
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
clusterprocess

Cluster Point Process Model
domain.rmhmodel

Extract the Domain of any Spatial Object