midpoints.psp: Midpoints of Line Segment Pattern

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/psp.R

Description

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

Usage

1

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

and \rolf

See Also

summary.psp, lengths.psp, angles.psp

Examples

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

spatstat documentation built on Oct. 9, 2017, 1:05 a.m.