net.addsegs {stream.net} | R Documentation |
Add segments to a net.object
, according
to either a uniform or a gamma distribution.
net.addsegs (net, dist="Uniform", min=1, max=2, shape=1.35, scale=2.3)
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 . |
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
.
A net.object
with segments added.
Denis White, white.denis@epa.gov
net.object
net.qmodel
net.addatt
runif
rgamma
net <- net.qmodel (10) net <- net.addsegs (net) net.map (net, segatt="sid")