|
KDTreeBaseTNodeNearest 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 KDTreeNodeCollection<TNode> Nearest(
double[] position,
int neighbors
)
Public Function Nearest (
position As Double(),
neighbors As Integer
) As KDTreeNodeCollection(Of TNode)
Request Example
View SourceParameters
- position
- Type: SystemDouble
The queried point. - neighbors
- Type: SystemInt32
The number of neighbors to retrieve.
Return Value
Type:
KDTreeNodeCollectionTNodeA list of neighbor points, ordered by distance.
See Also