Skip to content

Commit 7893df2

Browse files
committed
Fix equation for hash collision probability with SimHash.
1 parent bf5b5b3 commit 7893df2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/src/similarities/cosine.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ julia> length(hashes)
9696

9797
The probability of a hash collision (for a single hash) is
9898

99-
```
100-
Pr[h(x) = h(y)] = 1 - \frac{\theta}{\pi}
101-
```
99+
``Pr[h(x) = h(y)] = 1 - \frac{\theta}{\pi}``
102100

103101
where ``\theta = \text{arccos}(\text{cossim}(x,y))`` is the angle between ``x`` and ``y``. This collision probability is shown in the plot below.
104102

0 commit comments

Comments
 (0)