Click or drag to resize
Accord.NET (logo)

KDTreeBaseTNodeApproximateNearest Method (Double, Double, Double)

Retrieves a percentage of nearest points to a given point.

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.6.4-alpha
Syntax
public TNode ApproximateNearest(
	double[] position,
	double percentage,
	out double distance
)
Request Example View Source

Parameters

position
Type: SystemDouble
The queried point.
percentage
Type: SystemDouble
The maximum percentage of leaf nodes that can be visited before the search finishes with an approximate answer.
distance
Type: SystemDouble
The distance between the query point and its nearest neighbor.

Return Value

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