Click or drag to resize
Accord.NET (logo)

DistanceIsMetric Method (FuncDouble, Double, Double)

Checks whether a function is a real metric distance, i.e. respects the triangle inequality. Please note that a function can still pass this test and not respect the triangle inequality.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public static bool IsMetric(
	Func<double[], double[], double> value
Request Example View Source


Type: SystemFuncDouble, Double, Double

Return Value

Type: Boolean
See Also