|
KDTreeNodeCollectionTNodeAdd Method (TNode, Double)
|
Attempts to add a value to the collection. If the list is full
and the value is more distant than the farthest node in the
collection, the value will not be added.
Namespace:
Accord.Collections
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax public bool Add(
TNode value,
double distance
)
Public Function Add (
value As TNode,
distance As Double
) As Boolean
Request Example
View SourceParameters
- value
- Type: TNode
The node to be added. - distance
- Type: SystemDouble
The node distance.
Return Value
Type:
BooleanReturns true if the node has been added; false otherwise.
See Also