runiflpp

0th

Percentile

Uniform Random Points on a Linear Network

Generates $n$ random points, independently and uniformly distributed, on a linear network.

Keywords
spatial, datagen
Usage
runiflpp(n, L, nsim=1)
Arguments
n
Number of random points to generate. A nonnegative integer, or a vector of integers specifying the number of points of each type.
L
A linear network (object of class "linnet", see linnet).
nsim
Number of simulated realisations to generate.
Details

This function uses runifpointOnLines to generate the random points.

Value

  • If nsim = 1, a point pattern on the linear network, i.e. an object of class "lpp". If nsim > 1, a list of such point patterns.

See Also

rpoislpp, lpp, linnet

Aliases
  • runiflpp
Examples
data(simplenet)
   X <- runiflpp(10, simplenet)
   plot(X)
  # marked
   Z <- runiflpp(c(a=10, b=3), simplenet)
Documentation reproduced from package spatstat, version 1.42-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.