|
RedBlackTreeTFindLessThanOrEqualTo Method (RedBlackTreeNodeT, T)
|
Finds the greatest point in the subtree rooted at node
that is less than or equal to (<=) k. In other words, finds either
k or a number immediately below it.
Namespace:
Accord.Collections
Assembly:
Accord (in Accord.dll) Version: 3.8.0
Syntax public RedBlackTreeNode<T> FindLessThanOrEqualTo(
RedBlackTreeNode<T> node,
T value
)
Public Function FindLessThanOrEqualTo (
node As RedBlackTreeNode(Of T),
value As T
) As RedBlackTreeNode(Of T)
Request Example
View SourceParameters
- node
- Type: Accord.CollectionsRedBlackTreeNodeT
The subtree where search will take place. - value
- Type: T
A reference value to be found.
Return Value
Type:
RedBlackTreeNodeT
The node containing the given value
value or
its immediately smaller neighboring number present in the tree.
See Also