文件名称:hll:用于C编程语言的HyperLogLog库
文件大小:8KB
文件格式:ZIP
更新时间:2024-05-26 08:39:43
C
适用于C语言的HyperLogLog库 参见 例子 /* * File: examples/rnd.c */ # include < stdio> # include < stdlib> # include " ../src/hll.h " int main ( int argc, char *argv[]) { long i; struct HLL hll; if ( hll_init (&hll, 16 ) == - 1 ) { perror ( " hll_init " ); exit ( 1 ); } for (i = 0 ; i < 100000000 ; i++) { long r = random () 00000 ; hll_add (&hll, &r, sizeof (r)); } printf ( " Estima
【文件预览】:
hll-master
----.gitignore(30B)
----Makefile(596B)
----src()
--------hll.h(570B)
--------hll.c(3KB)
--------main.c(2KB)
----.travis.yml(124B)
----LICENSE(1KB)
----deps()
--------MurmurHash3()
----examples()
--------rnd.c(408B)
----README.md(3KB)
----tests()
--------hll-count.sh(2KB)