KSLCore
Toggle table of contents
R1.2.2
jvm
Platform filter
jvm
Switch theme
Search in API
KSLCore
KSLCore
/
ksl.utilities
/
KSLArrays
/
manhattanDistance
manhattan
Distance
@
JvmStatic
fun
manhattanDistance
(
a
:
List
<
Int
>
,
b
:
List
<
Int
>
)
:
Int
(
source
)
@
JvmStatic
fun
manhattanDistance
(
a
:
IntArray
,
b
:
IntArray
)
:
Int
(
source
)
@
JvmStatic
fun
manhattanDistance
(
a
:
List
<
Double
>
,
b
:
List
<
Double
>
)
:
Double
(
source
)
@
JvmStatic
fun
manhattanDistance
(
a
:
DoubleArray
,
b
:
DoubleArray
)
:
Double
(
source
)
Computes the Manhattan distance between the two vectors. The vectors must be of the same size.