Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to 2.0. Fix ScalableBloomFilter and make the tests resilient to …
…FP error.
- Loading branch information
Showing
6 changed files
with
75 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,11 @@ | |||
Changes in 2.0 | |||
============== | |||
Made major corrections to the algorithms for both BloomFilter and | |||
ScalableBloomFilter. Not numerically compatible with serialized | |||
representations of filters from previous versions. Specifically, | |||
BloomFilter was more accurate than requested and ScalableBloomFilter | |||
was much less accurate than requested. | |||
|
|||
Changes in 1.1 | Changes in 1.1 | ||
============== | ============== | ||
Added copy, intersection and union functions to BloomFilter | Added copy, intersection and union functions to BloomFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,4 @@ | |||
"""pybloom | """pybloom | ||
""" | """ | ||
from pybloom import BloomFilter, ScalableBloomFilter, __version__, __author__ | from pybloom import BloomFilter, ScalableBloomFilter, __version__, __author__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The original code was correct:
for i in xrange(f.capacity, f.capacity + trials):
The +1 here is incorrect.