Learn R Programming

geonet (version 0.7.3)

delta_h_global: Computes a Global Knot Distance from the Input

Description

Computes a Global Knot Distance from the Input

Usage

delta_h_global(G, delta = NULL, h = NULL)

Value

The global knot distance delta.

Arguments

G

An object of class gn) or a point pattern on a geometric network (object of class gnpp).

delta

A numeric vector of length one which already defines the global knot distance. Alternatively, delta can be supplied in terms of a quantile of the curve lengths of the network, i.e. a number in the unit interval. In the latter case, delta must be supplied as a character vector of length one, see the examples. By default, delta is chosen to be half of the minimal curve length.

h

A numeric vector of length one which already defines the global knot distance h. Alternatively, h can be supplied in terms of a fraction of delta, i.e. a number in the interval (0,1]. In the latter case, h must be supplied as character vector of length one, see the examples. By default, h is chosen to be half of the global knot distance.

Examples

Run this code
G <- as_gn(montgomery)
# use default arguments
setup <- delta_h_global(G)
setup
# set numeric value for delta and fraction for h
setup <- delta_h_global(G, delta = 0.1, h = "0.25")
setup
# set quantile for delta
setup <- delta_h_global(G, delta = "0.05")
setup

Run the code above in your browser using DataLab