Click or drag to resize
Accord.NET (logo)

DistanceGetDistanceT Method

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.6.0
Syntax
public static IDistance<T> GetDistance<T>(
	Func<T, T, double> func
)
Request Example View Source

Parameters

func
Type: SystemFuncT, T, Double
The method of Distance.

Type Parameters

T
The type of the elements being compared in the distance function.

Return Value

Type: IDistanceT
An object of the class that implements the given distance.
Remarks
This method relies on reflection and might not work on all scenarios, environments, and/or platforms.
See Also