|
DistanceManhattan Method (Int32, Int32)
|
Gets the Manhattan distance between two points.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static double Manhattan(
int[] x,
int[] y
)
Public Shared Function Manhattan (
x As Integer(),
y As Integer()
) As Double
Request Example
View SourceParameters
- x
- Type: SystemInt32
The first point x. - y
- Type: SystemInt32
The second point y.
Return Value
Type:
DoubleThe Manhattan distance between x and y.
Examples
For examples, please see
Manhattan documentation page.
See Also