MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / cos

Function cos

tools/utils/e2e_utils/visual.py:151–152  ·  view source on GitHub ↗
(p1, p2)

Source from the content-addressed store, hash-verified

149
150
151def cos(p1, p2):
152 return (p1 * p2).sum() / (norm2(p1) * norm2(p2))

Callers 1

Calls 1

norm2Function · 0.85

Tested by

no test coverage detected