Click or drag to resize
Accord.NET (logo)

KDTreeBaseTNodeNearest Method (Double, Int32)

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

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.6.0
Syntax
public KDTreeNodeCollection<TNode> Nearest(
	double[] position,
	int neighbors
)
Request Example View Source

Parameters

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

Return Value

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