Handbook
Glossary
cosine-similarity ( a b -- n )
Vocabulary
math
.
similarity
Inputs
a
an
object
b
an
object
Outputs
n
an
object
Definition
USING:
kernel
math
math.vectors
;
IN:
math.similarity
:
cosine-similarity
( a b -- n )
[
vdot
]
[
[
norm
]
bi@
*
]
2bi
/
;