Click or drag to resize
Accord.NET (logo)

VPTreeBaseTPoint, TNodeNearest Method (TPoint, Int32, ListNodeDistanceTNode)

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,
	List<NodeDistance<TNode>> results
)
Request Example View Source

Parameters

position
Type: TPoint
The queried point.
neighbors
Type: SystemInt32
The number of neighbors to retrieve.
results
Type: System.Collections.GenericListNodeDistanceTNode
The list where to store results.

Return Value

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