hll-d 0.1.3
HyperLogLog++: Cardinality estimationn
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
Complete HyperLogLog++ Implementation
Written in D to use in C and other languages.
import hll;
// creates HLL++ counter with maximal allowed precision (18)
auto counter = HLL(18); // allocated size is less or equal to 2 ^^ (18 - 3) * 6 / 1024 = 192 KB
/// loop
  counter.put(anArrayOrString);
  // or
  //counter.put(anUlong);
  //counter.put(anUUID);
ulong count = counter.count;
Building the library with C API
BetterC mode allows to use D libraries without DRuntime and Phobos.
hll-d has C API. C/C++ headers can be found at the include/ directory.
Install LDC
Download
git clone https://github.com/tamediadigital/hll-d
cd hll-d
Build
dub build --build=betterC --config=static --compiler=ldc2 --force
Test
gcc examples/example.c -Iinclude libhll-d.a
./a.out < examples/input.txt
- 0.1.3 released 8 years ago
 - tamediadigital/hll-d
 - BSL-1.0
 - Copyright © 2017, Tamedia Digital
 
- Authors:
 - Dependencies:
 - mir-math, mir-random, mir-algorithm, lincount
 - Versions:
 - 
						
Show all 10 versions0.3.1 2017-Sep-20 0.3.0 2017-Sep-04 0.2.0 2017-Mar-07 0.1.3 2017-Feb-27 0.1.2 2017-Feb-25  - Download Stats:
 - 
						
- 
								
0 downloads today
 - 
								
0 downloads this week
 - 
								
3 downloads this month
 - 
								
68 downloads total
 
 - 
								
 - Score:
 - 1.8
 - Short URL:
 - hll-d.dub.pm