Learn R Programming

spatstat.random (version 3.4-3)

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

90,060

Version

3.4-3

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

November 21st, 2025

Functions in spatstat.random (3.4-3)

domain.rmhmodel

Extract the Domain of any Spatial Object
clusterfield

Field of clusters
default.expand

Default Expansion Rule for Simulation of Model
clusterkernel

Extract Cluster Offspring Kernel
clusterradius

Compute or Extract Effective Range of Cluster Kernel
dmixpois

Mixed Poisson Distribution
dpakes

Pakes distribution
as.owin.rmhmodel

Convert Data To Class owin
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
Window.rmhmodel

Extract Window of Spatial Object
rGaussPoisson

Simulate Gauss-Poisson Process
gauss.hermite

Gauss-Hermite Quadrature Approximation to Expectation for Normal Distribution
rGRFgauss

Simulate a Gaussian Random Field
expand.owin

Apply Expansion Rule
quadratresample

Resample a Point Pattern by Resampling Quadrats
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
is.stationary

Recognise Stationary and Poisson Point Process Models
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
rHardcore

Perfect Simulation of the Hardcore Process
rMaternI

Simulate Matern Model I
rMosaicField

Mosaic Random Field
rPenttinen

Perfect Simulation of the Penttinen Process
rNeymanScott

Simulate Neyman-Scott Process
rMaternII

Simulate Matern Model II
rPSNCP

Simulate Product Shot-noise Cox Process
rPoissonCluster

Simulate Poisson Cluster Process
rMatClust

Simulate Matern Cluster Process
rLGCP

Simulate Log-Gaussian Cox Process
rMosaicSet

Mosaic Random Set
rags

Alternating Gibbs Sampler for Multitype Point Processes
rThomas

Simulate Thomas Process
rcellnumber

Generate Random Numbers of Points for Cell Process
rStrauss

Perfect Simulation of the Strauss Process
ragsAreaInter

Alternating Gibbs Sampler for Area-Interaction Process
ragsMultiHard

Alternating Gibbs Sampler for Multitype Hard Core Process
rVarGamma

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

Perfect Simulation of the Strauss-Hardcore Process
rSSI

Simulate Simple Sequential Inhibition
rcell

Simulate Baddeley-Silverman Cell Process
rclusterBKBC

Simulate Cluster Process using Brix-Kendall Algorithm or Modifications
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
rknn

Theoretical Distribution of Nearest Neighbour Distance
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
reach

Interaction Distance of a Point Process Model
recipEnzpois

First Reciprocal Moment of the Truncated Poisson Distribution
rmhexpand

Specify Simulation Window or Expansion Rule
rjitter.psp

Random Perturbation of Line Segment Pattern
rlabel

Random Re-Labelling of Point Pattern
rmpoispp

Generate Multitype Poisson Point Pattern
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
rpoisline

Generate Poisson Random Line Process
rmpoint

Generate N Random Multitype Points
rpoint

Generate N Random Points
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
rpoislinetess

Poisson Line Tessellation
rnoise

Random Pixel Noise
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
rshift.splitppp

Randomly Shift a List of Point Patterns
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
rpoistrunc

Random Values from the Truncated Poisson Distribution
rshift.ppp

Randomly Shift a Point Pattern
rshift

Random Shift
rstrat

Simulate Stratified Random Point Pattern
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rshift.psp

Randomly Shift a Line Segment Pattern
rpoispp

Generate Poisson Point Pattern
runifpointOnLines

Generate N Uniform Random Points On Line Segments
rthinclumps

Random Thinning of Clumps
runifpoint

Generate N Uniform Random Points
rthin

Random Thinning
spatstat.random-internal

Internal spatstat.random functions
rtemper

Simulated Annealing or Simulated Tempering for Gibbs Point Processes
runifpoint3

Generate N Uniform Random Points in Three Dimensions
runifdisc

Generate N Uniform Random Points in a Disc
spatstat.random-package

The spatstat.random Package
runifpointx

Generate N Uniform Random Points in Any Dimensions
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
will.expand

Test Expansion Rule