Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

value
Type: TNode
The node to be added.
distance
Type: SystemDouble
The node distance.

Return Value

Type: Boolean
Returns true if the node has been added; false otherwise.
See Also