Click or drag to resize
Accord.NET (logo)

KDTreeBaseTNodeNearest Method (Double, Double)

Retrieves the nearest points to a given point within a given radius.

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.7.0
Syntax
public List<NodeDistance<TNode>> Nearest(
	double[] position,
	double radius
)
Request Example View Source

Parameters

position
Type: SystemDouble
The queried point.
radius
Type: SystemDouble
The search radius.

Return Value

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