ClosestN

open class ClosestN<T, P : Position<P>?> : LinkingRule<T, P>

Non local-consistent rule that connect the closest N nodes together. Two nodes get connected if either one belongs to the set of the ten devices closest to the other.

Parameters

<T>

Concentration type

<P>

Inheritors

Constructors

Link copied to clipboard
constructor(n: Int, expectedNodes: Int, maxNodes: Int)
constructor(n: Int, expectedNodes: Int)
constructor(n: Int)

Functions

Link copied to clipboard
fun computeNeighborhood(center: Node<T>, environment: Environment<T, P>): Neighborhood<T>
Link copied to clipboard