Skip to main content

Elena's functional hyperloglog module

Project description

Allows you to take intersection of arbitrarily many hyperloglogs.

hll = HyperLogLog(0.01) # 0.01 is % accuracy hll.add(1) # can add objects of any type hll2 = HyperLogLog(0.01) hll3 = HyperLogLog(0.01)

hll.intersectoin([hll2, hll3]) # returns cardinality of intersection set NOTE THAT IN ORDER TO TAKE INTERSECTION ALL SETS MUST BE THE SAME SIZE or in other words, MUST HAVE THE SAME % ACCURACY

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hyperloglogs, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size hyperloglogs-0.1.tar.gz (1.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page