Click or drag to resize
Accord.NET (logo)

VPTreeBaseTPoint, TNodeNearest Method (TPoint, Int32)

Retrieves a fixed point of nearest points to a given point.

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public List<NodeDistance<TNode>> Nearest(
	TPoint position,
	int neighbors
)
Request Example View Source

Parameters

position
Type: TPoint
The queried point.
neighbors
Type: SystemInt32
The number of neighbors to retrieve.

Return Value

Type: ListNodeDistanceTNode
A list of neighbor points, ordered by distance.
See Also