= rpois(1, 0.1 * 20 * 10)
N = runif(N, 0, 20)
u1 = runif(N, 0, 10)
u2 plot(u1, u2, pch = 20,
xlab = "x-coordinate", ylab = "y-coordinate",
main = "Spatial Poisson Process on 20x10 area with intensity 0.1")
Spatial Poisson Processes, and Relatives of Poisson Processes
Spatial Poisson Process
Distance from center to closest point
= 10000
n_rep = rep(NA, n_rep)
R
for (i in 1:n_rep) {
= rpois(1, 0.1 * 20 * 10)
N = runif(N, 0, 20)
u1 = runif(N, 0, 10)
u2 = min(sqrt((u1 - 10) ^ 2 + (u2 - 5) ^ 2))
R[i]
}
hist(R, freq = FALSE)