Click or drag to resize
Accord.NET (logo)

SquareEuclideanDistance Method (Double, Double, Double, Double)

Gets the Square Euclidean distance between two points.

Namespace:  Accord.Math.Distances
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public double Distance(
	double x1,
	double y1,
	double x2,
	double y2
)
Request Example View Source

Parameters

x1
Type: SystemDouble
The first coordinate of first point in space.
y1
Type: SystemDouble
The second coordinate of first point in space.
x2
Type: SystemDouble
The first coordinate of second point in space.
y2
Type: SystemDouble
The second coordinate of second point in space.

Return Value

Type: Double
The Square Euclidean distance between x and y.
See Also