linkPlan1: linkPlan1

Description Usage Arguments Details Value Examples

Description

Creates a way through the portals and a link plan for a single agent.

Usage

1
linkPlan1(g, way = NULL, direction = NULL)

Arguments

g

web

way

numeric vector: a sequence of portals the agent should go (default: NULL)

direction

numeric: angle main direction the agent will (default: NULL)

Details

If direction is not set then the direction of the first principal component is as main direction choosen. If way is set then first is checked if we can create a maximum field with the path. If yes you get the link plan bakc.

Value

a web with a way and link plan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(0)
g  <- homogeneous(2)
x  <- cbind(runif(10), runif(10))
gi <- web(g, x)
g1 <- optimizeWeb(gi)
g2 <- linkPlan1(g1)
## Not run: 
runPlan(g2)

## End(Not run)

SigbertIngress/findWeb documentation built on May 26, 2019, 4:38 p.m.