Click or drag to resize
Accord.NET (logo)

KDTreeBaseTNodeNearest Method (Double, Double, Int32)

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

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

Parameters

position
Type: SystemDouble
The queried point.
radius
Type: SystemDouble
The search radius.
maximum
Type: SystemInt32
The maximum number of neighbors to retrieve.

Return Value

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