|
KDTreeBaseTNodeApproximateNearest Method (Double, Int32)
|
Retrieves a fixed number of nearest points to a given point.
Namespace:
Accord.Collections
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax public TNode ApproximateNearest(
double[] position,
int maxLeaves
)
Public Function ApproximateNearest (
position As Double(),
maxLeaves As Integer
) As TNode
Request Example
View SourceParameters
- position
- Type: SystemDouble
The queried point. - maxLeaves
- Type: SystemInt32
The maximum number of leaf nodes that can
be visited before the search finishes with an approximate answer.
Return Value
Type:
TNodeA list of neighbor points, ordered by distance.
See Also