besquared / hyperloglog

An efficient native implementation of the HyperLogLog cardinality estimator for Ruby
36 stars 2 forks source link

Added to the API #6

Open natemueller opened 12 years ago

natemueller commented 12 years ago

I want to be able to merge together estimators and stick the result in memcache. Needed the following methods to do that:

HyperEstimator#merge! HyperEstimator#_dump HyperEstimator.load

I also changed HyperEstimator.estimate to take an array of estimators as well as a list