Click or drag to resize
Accord.NET (logo)

EuclideanDistance Method (TupleDouble, Double, TupleDouble, Double)

Gets the Euclidean distance between two points.

Namespace:  Accord.Math.Distances
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public double Distance(
	Tuple<double, double> x,
	Tuple<double, double> y
)
Request Example View Source

Parameters

x
Type: SystemTupleDouble, Double
The first point in space.
y
Type: SystemTupleDouble, Double
The second point in space.

Return Value

Type: Double
The Euclidean distance between x and y.

Implements

IDistanceT, UDistance(T, U)
See Also