ShiftBranching: Move branching nodes to areas with higher point density

Description Usage Arguments Value

Description

Move branching nodes to areas with higher point density

Usage

1
2
3
ShiftBranching(X, TargetPG, SelectionMode = "NodePoints",
  DensityRadius = NA, MaxShift = 3, Compensate = FALSE, BrIds = NULL,
  TrimmingRadius = Inf)

Arguments

X

numeric matrix, the data matrix

TargetPG

list, the ElPiGraph structure to extend

SelectionMode

string, the mode to use to shift the branching points. The "NodePoints" and "NodeDensity" modes are currently supported

DensityRadius

positive numeric, the radius to be used when computing point density if SelectionMode = "NodeDensity"

MaxShift

positive integer, the maxium distance (as number of edges) to consider when exploring the branching point neighborhood

Compensate

booelan, should new points be included to compensate for olter one being removed (currently not implemented)

BrIds

integer vector, the id of the branching points to consider. Id not associted with node possessing degree > 2 will be ignored

TrimmingRadius

positive numeric, the trimming radius used to control distance

Value

a list with two components: NodePositions (Containing the new nodes positions) and Edges (containing the new edges)

The function explore the neighborhood of branching point for nodes with higher point density. It such point is found, to graph will be modified so that the new found node will be the new branching point of the neighborhood.


Albluca/ElPiGraph.R documentation built on May 28, 2019, 11:02 a.m.