spatstat (version 1.23-3)

runifpointx: Generate N Uniform Random Points in Any Dimensions

Description

Generate a random point pattern containing n independent, uniform random points in any number of spatial dimensions.

Usage

runifpointx(n, domain)

Arguments

n
Number of points to be generated.
domain
Multi-dimensional box in which the process should be generated. An object of class "boxx".

Value

  • The simulated point pattern (an object of class "ppx").

Details

This function generates n independent random points, uniformly distributed in the multi-dimensional box domain.

See Also

rpoisppx, ppx, boxx

Examples

Run this code
w <- boxx(x=c(0,1), y=c(0,1), z=c(0,1), t=c(0,3))
   X <- runifpointx(50, w)

Run the code above in your browser using DataCamp Workspace