Computes the midpoints of each line segment in a line segment pattern.
midpoints.psp(x)
A line segment pattern (object of class "psp"
).
Point pattern (object of class "ppp"
).
The midpoint of each line segment is computed.
# NOT RUN {
a <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
b <- midpoints.psp(a)
# }
Run the code above in your browser using DataLab