Click or drag to resize
Accord.NET (logo)

KDTreeFromData Method (Double, Boolean)

Creates a new k-dimensional tree from the given points.

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.7.0
Syntax
public static KDTree FromData(
	double[][] points,
	bool inPlace = false
)
Request Example View Source

Parameters

points
Type: SystemDouble
The points to be added to the tree.
inPlace (Optional)
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.

Return Value

Type: KDTree
A KDTreeT populated with the given data points.
See Also