Handbook
Glossary
canberra-distance ( a b -- n )
Vocabulary
math
.
distances
Inputs
a
an
object
b
an
object
Outputs
n
an
object
Definition
USING:
kernel
math.vectors
sequences
;
IN:
math.distances
:
canberra-distance
( a b -- n )
[
v-
vabs
]
[
[
vabs
]
bi@
v+
]
2bi
v/
sum
;