Click or drag to resize
Accord.NET (logo)

VPTreeFromDataTPoint Method (TPoint, IDistanceTPoint, Boolean)

Creates a new vantage-point tree from the given points.

Namespace:  Accord.Collections
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
public static VPTree<TPoint> FromData<TPoint>(
	TPoint[] points,
	IDistance<TPoint> distance,
	bool inPlace = false
Request Example View Source


Type: TPoint
The points to be added to the tree.
Type: Accord.Math.DistancesIDistanceTPoint
The distance function to use.
inPlace (Optional)
Type: SystemBoolean
Whether to perform operations in place, altering the original array of points instead of creating an extra copy.

Type Parameters

The type for the position vectors.

Return Value

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