R: Midpoints of Line Segment Pattern

midpoints.psp {spatstat.geom} | 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.Baddeley@curtin.edu.au

and Rolf Turner r.turner@auckland.ac.nz

### See Also

`marks.psp`, `summary.psp`, `lengths_psp` `angles.psp`, `endpoints.psp`, `extrapolate.psp`.

### Examples

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

[Package spatstat.geom version 2.3-2 Index]