Last chance! 50% off unlimited learning
Sale ends in
n
points uniformly distributed on the
line segments.runifpointOnLines(n, L)
"psp"
)
on which the points should lie."ppp"
) with the same
window as L
.n
independent random points, each point uniformly distributed on
the line segment pattern. This means that, for each random point,
psp
,
ppp
,
pointsOnLines
,
runifpoint
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
Y <- runifpointOnLines(20, X)
plot(X, main="")
plot(Y, add=TRUE)
Run the code above in your browser using DataLab