Skip to content

Commit

Permalink
Merge pull request #7 from eseiler/patch-1
Browse files Browse the repository at this point in the history
Fix typing in simple_bf_size_estimate.py
  • Loading branch information
rsharris authored Feb 21, 2023
2 parents 1d0c3b8 + c4a9bbe commit 8d73097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/simple_bf_size_estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def main():
if (numHashFuncs == 1):
numBits = -distinctKmers/log(1-fpRate)
else:
numBits = -(numHashFuncs*distinctKmers) / log(1-(fpRate)**(1/numHashFuncs))
numBits = -(numHashFuncs*distinctKmers) / log(1-(fpRate)**(1/float(numHashFuncs)))
numBits = int(ceil(numBits))

print "#numItems\tbfFP\tnumHashes\tnumBits"
Expand Down

0 comments on commit 8d73097

Please sign in to comment.