|
KDTreeBaseTNodeNearest Method (Double, Double)
|
Retrieves the nearest point to a given point.
Namespace:
Accord.Collections
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax public TNode Nearest(
double[] position,
out double distance
)
Public Function Nearest (
position As Double(),
<OutAttribute> ByRef distance As Double
) As TNode
Request Example
View SourceParameters
- position
- Type: SystemDouble
The queried point. - distance
- Type: SystemDouble
The distance from the position
to its nearest neighbor found in the tree.
Return Value
Type:
TNodeA list of neighbor points, ordered by distance.
See Also