spatstat (version 1.41-1)

diameter.linnet: Circumradius and Diameter of a Linear Network

Description

Compute the circumradius or diameter of a linear network measured using the shortest path distance.

Usage

## S3 method for class 'linnet':
circumradius(x, \dots)

## S3 method for class 'linnet': diameter(x)

Arguments

x
Linear network (object of class "linnet").
...
Ignored.

Value

  • A single numeric value.

Details

The diameter of a linear network (in the shortest path distance) is the maximum value of the shortest-path distance between any two points $u$ and $v$ on the network.

The circumradius of a linear network (in the shortest path distance) is the minimum value, over all points $u$ on the network, of the maximum shortest-path distance from $u$ to another point $v$ on the network. The functions circumradius and diameter are generic; the functions circumradius.linnet and diameter.linnet are the methods for objects of class linnet.

See Also

circumradius, diameter, linnet

Examples

Run this code
diameter(simplenet)
   circumradius(simplenet)

Run the code above in your browser using DataCamp Workspace