Learn R Programming

spatstat.geom (version 3.3-2)

midpoints.psp: Midpoints of Line Segment Pattern

Description

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

Usage

midpoints.psp(x)

Value

Point pattern (object of class "ppp").

Arguments

x

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

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au

and Rolf Turner rolfturner@posteo.net

Details

The midpoint of each line segment is computed.

See Also

marks.psp, summary.psp, lengths_psp angles.psp, endpoints.psp, extrapolate.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 DataLab