|
KDTreeBaseTNodeNearest Method (Double, Double, Int32)
|
Retrieves the nearest points to a given point within a given radius.
Namespace:
Accord.Collections
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax public ICollection<NodeDistance<TNode>> Nearest(
double[] position,
double radius,
int maximum
)
Public Function Nearest (
position As Double(),
radius As Double,
maximum As Integer
) As ICollection(Of NodeDistance(Of TNode))
Request Example
View SourceParameters
- position
- Type: SystemDouble
The queried point. - radius
- Type: SystemDouble
The search radius. - maximum
- Type: SystemInt32
The maximum number of neighbors to retrieve.
Return Value
Type:
ICollectionNodeDistanceTNodeA list of neighbor points, ordered by distance.
See Also