spatstat (version 1.13-0)

lengths.psp: Lengths of Line Segments

Description

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

Usage

lengths.psp(x)

Arguments

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

Value

  • Numeric vector.

Details

The length of each line segment is computed and the lengths are returned as a numeric vector.

See Also

summary.psp, midpoints.psp, angles.psp

Examples

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

Run the code above in your browser using DataCamp Workspace