Learn R Programming

geonet (version 0.7.3)

rgnpp: Random Points on a Geometric Network

Description

Random Points on a Geometric Network

Usage

rgnpp(n, fit)

Value

A point pattern on a geometric network, an object of class gnpp.

Arguments

n

Number of random points. A nonnegative integer.

fit

A fitted point process on a geometric network (object of class gnppfit).

Examples

Run this code
X <- runifgn(n = 50, G = small_gn)
fit <- intensity_pspline(X)
X2 <- rgnpp(n = 50, fit = fit)
plot(X2)

Run the code above in your browser using DataLab