imoca / count-min-sketch
A count min sketch implementation store on disk.
v1.0.0
2020-08-24 19:10 UTC
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
This package is auto-updated.
Last update: 2025-06-19 19:24:56 UTC
README
Light Count Min Sketch implementation with storing on disk really fast.
Installation via Composer
The recommended method to install is through Composer.
-
Add
imoca/countminsketch
as a dependency in your project'scomposer.json
file:{ "require": { "imoca/countminsketch": "*" } }
API
$cms = new Imoca\CountMinSketch\CountMinSketch($nb_hash, $nb_width, 'path_to_file_store');
$cms->record("word_to_insert");
$counter = $cms->count("word_to_count");
echo $cms; //working