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

0.1

Download files

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

Source Distribution

hyperloglogs-0.1.tar.gz (1.1 kB view details)

Uploaded Source

File details

Details for the file hyperloglogs-0.1.tar.gz.

File metadata

  • Download URL: hyperloglogs-0.1.tar.gz
  • Upload date:
  • Size: 1.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hyperloglogs-0.1.tar.gz
Algorithm Hash digest
SHA256 2170ccb1c3d53a578842d4277fc471335ab389809df5526c357972767a945bd3
MD5 d423dd207d86920cdbfc046fadb17596
BLAKE2b-256 735a2b75d8eeb4bda913692192667c60db10ae76c55a858cc07f3bac37682a83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page