Learn R Programming

spatstat.linnet (version 3.2-2)

diameter.linnet: Diameter and Bounding Radius of a Linear Network

Description

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

Usage

# S3 method for linnet
diameter(x)

# S3 method for linnet boundingradius(x, ...)

Value

A single numeric value.

Arguments

x

Linear network (object of class "linnet").

...

Ignored.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au

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 bounding radius 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 boundingradius and diameter are generic; the functions boundingradius.linnet and diameter.linnet are the methods for objects of class linnet.

See Also

boundingradius, diameter, linnet

Examples

Run this code
   diameter(simplenet)
   boundingradius(simplenet)

Run the code above in your browser using DataLab