midpoints.psp {spatstat}R Documentation

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").

Details

The midpoint of each line segment is computed.

Value

Point pattern (object of class "ppp").

Author(s)

Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner rolf@math.unb.ca http://www.math.unb.ca/~rolf

See Also

summary.psp, lengths.psp, angles.psp

Examples

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

[Package spatstat version 1.11-3 Index]