|
VPTreeFromDataTData Method (Double, TData, 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
Syntax public static VPTree<double[], TData> FromData<TData>(
double[][] points,
TData[] values,
bool inPlace = false
)
Public Shared Function FromData(Of TData) (
points As Double()(),
values As TData(),
Optional inPlace As Boolean = false
) As VPTree(Of Double(), TData)
Request Example
View SourceParameters
- points
- Type: SystemDouble
The points to be added to the tree. - values
- Type: TData
The corresponding values at each data point. - inPlace (Optional)
- Type: SystemBoolean
Whether to perform operations in place, altering the
original array of points instead of creating an extra copy.
Type Parameters
- TData
- The type of the value to be stored.
Return Value
Type:
VPTreeDouble,
TDataA
VPTreeTPoint, TData populated with the given data points.
See Also