directed_geom: Directed geometric graph

View source: R/directed_geom.R

directed_geomR Documentation

Directed geometric graph

Description

Compute the geometric graph

x1 ~ x2 <=> ||x1-x2||< r & -theta < angle(x2-x1, u) < theta

Usage

directed_geom(x, u, theta, r, from, to, double = TRUE, pregraph)

Arguments

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

Details

If pregraph is given, "to" is ignored.

Value

Neighbour index vectors as a list.


antiphon/Kdirectional documentation built on Feb. 13, 2023, 6:26 a.m.