Skip to content

Commit

Permalink
Fixed a documentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudenw committed Jul 4, 2023
1 parent 4e7ab0b commit a1749d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public int getNumberOfHashFunctions() {
/**
* Calculates the probability of false positives ({@code p}) given
* numberOfItems ({@code n}), numberOfBits ({@code m}) and numberOfHashFunctions ({@code k}).
* <pre>p = pow(1 - exp(-k / (m / n)), k)</pre>
* <pre>p = pow(1 - exp(-kn/m)), k)</pre>
*
* <p>This is the probability that a Bloom filter will return true for the presence of an item
* when it does not contain the item.</p>
Expand Down

0 comments on commit a1749d7

Please sign in to comment.