View source: R/directed_geom.R
directed_geom | R Documentation |
Compute the geometric graph
x1 ~ x2 <=> ||x1-x2||< r & -theta < angle(x2-x1, u) < theta
directed_geom(x, u, theta, r, from, to, double = TRUE, pregraph)
x |
matrix of location coordinates |
u |
unit vector of direction |
theta |
angle for the directed cone |
r |
radius for neighbourhood |
from |
default 1:nrow(x), indices of points from which to compute edges |
to |
default 1:nrow(x), indices of points which account as potential neighbours |
double |
use the double cone, i.e. look also in direction -u? |
pregraph |
A list-of-neighbour indices where to look for potential neighbours |
If pregraph is given, "to" is ignored.
Neighbour index vectors as a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.