|
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
)
Public Function Distance (
x1 As Double,
y1 As Double,
x2 As Double,
y2 As Double
) As Double
Request Example
View SourceParameters
- 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:
DoubleThe Square Euclidean distance between x and y.
See Also