spatstat (version 1.21-0)

midpoints.psp: Midpoints of Line Segment Pattern

Description

Computes the midpoints of each line segment in a line segment pattern.

Usage

midpoints.psp(x)

Arguments

x
A line segment pattern (object of class "psp").

Value

  • Point pattern (object of class "ppp").

Details

The midpoint of each line segment is computed.

See Also

summary.psp, lengths.psp, angles.psp

Examples

Run this code
a <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
  b <- midpoints.psp(a)

Run the code above in your browser using DataCamp Workspace