runiflpp {spatstat}R Documentation

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).

Details

This function uses runifpointOnLines to generate the random points.

Value

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

Author(s)

Ang Qi Wei aqw07398@hotmail.com and Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/

See Also

rpoislpp, lpp, linnet

Examples

   data(simplenet)
   X <- runiflpp(10, simplenet)
   plot(X)

[Package spatstat version 1.25-3 Index]