|
KDTreeBaseTNodeCreateRoot Method
|
Creates the Root node for a new
KDTreeT given
a set of data points and their respective stored values.
Namespace:
Accord.Collections
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax protected static TNode CreateRoot(
double[][] points,
bool inPlace,
out int leaves
)
Protected Shared Function CreateRoot (
points As Double()(),
inPlace As Boolean,
<OutAttribute> ByRef leaves As Integer
) As TNode
Request Example
View SourceParameters
- points
- Type: SystemDouble
The data points to be inserted in the tree. - inPlace
- Type: SystemBoolean
Whether the given points vector
can be ordered in place. Passing true will change the original order of
the vector. If set to false, all operations will be performed on an extra
copy of the vector. - leaves
- Type: SystemInt32
Return the number of leaves in the Root subtree.
Return Value
Type:
TNodeThe Root node for a new
KDTreeT
contained the given
points.
See Also