Learn R Programming

spatstat (version 1.23-1)

rpoispp3: Generate Poisson Point Pattern in Three Dimensions

Description

Generate a random three-dimensional point pattern using the homogeneous Poisson process.

Usage

rpoispp3(lambda, domain = box3())

Arguments

lambda
Intensity of the Poisson process. A single positive number.
domain
Three-dimensional box in which the process should be generated. An object of class "box3".

Value

  • The simulated three-dimensional point pattern (an object of class "pp3").

Details

This function generates a realisation of the homogeneous Poisson process in three dimensions, with intensity lambda (points per unit volume). The realisation is generated inside the three-dimensional region domain which currently must be a rectangular box (object of class "box3").

See Also

runifpoint3, pp3, box3

Examples

Run this code
X <- rpoispp3(50)

Run the code above in your browser using DataLab