Handbook
Glossary
normalized-squared-euclidian-distance ( a b -- n )
Vocabulary
math
.
distances
Inputs
a
an
object
b
an
object
Outputs
n
an
object
Definition
USING:
kernel
math
math.statistics
math.vectors
;
IN:
math.distances
:
normalized-squared-euclidian-distance
( a b -- n )
[
dup
mean
v-n
]
bi@
[
v-
norm-sq
]
[
[
norm-sq
]
bi@
+
]
2bi
/
2
/
;