net.addsegs {stream.net}R Documentation

Add Segments to Links of Stream Network

Description

Add segments to a net.object, according to either a uniform or a gamma distribution.

Usage

  net.addsegs (net, dist="Uniform", min=1, max=2, 
    shape=1.35, scale=2.3)

Arguments

net A net.object.
dist If "Uniform", use uniform distribution for number of segments to add, else if "Gamma", use gamma distribution.
min min argument of runif.
max max argument of runif.
shape shape argument of rgamma.
scale scale argument of rgamma.

Details

Add segments to a (presumably random) network. Number of segments to add per link is either a random draw from a uniform distribution between min and max, inclusive, or a random draw from a gamma distribution with parameters shape and scale. Does not handle segment attributes, so should be used before attributes are added. The number of segments added for any particular link can be zero.

Primarily designed to be used with net.qmodel.

Value

A net.object with segments added.

Author(s)

Denis White, white.denis@epa.gov

See Also

net.object net.qmodel net.addatt runif rgamma

Examples

  net <- net.qmodel (10)
  net <- net.addsegs (net)
  net.map (net, segatt="sid")

[Package stream.net version 1.0.6 Index]