PartitionData: Assign data points to a set of nodes

Description Usage Arguments Value

Description

Assign data points to a set of nodes

Usage

1
2
PartitionData(X, NodePositions, SquaredX = NULL, TrimmingRadius = Inf,
  nCores = 1)

Arguments

X

an n-by-m numeric matrix with the coordinates of the data points

NodePositions

an k-by-m numeric matrix with the coordiante of the nodes

SquaredX

the sum by row of the squared positions rowSums(X^2). If NULL it will be calculated by the fucntion.

TrimmingRadius

Maximum distance of data points to the nodes to assign a point to a node

nCores

number of cores to use.

Value

A list containing two components: Partition (containing the associated nodes) and Dists (containing the squqred distance from the node)


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