Learn R Programming

spatstat (version 1.23-1)

runiflpp: Uniform Random Points on a Linear Network

Description

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

Usage

runiflpp(n, L)

Arguments

n
Number of random points to generate. A nonnegative integer.
L
A linear network (object of class "linnet", see linnet).

Value

  • A point pattern on the linear network, i.e. an object of class "lpp".

Details

This function uses runifpointOnLines to generate the random points.

See Also

rpoislpp, lpp, linnet

Examples

Run this code
data(simplenet)
   X <- runiflpp(10, simplenet)
   plot(X)

Run the code above in your browser using DataLab