imoca / count-min-sketch
A count min sketch implementation store on disk.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/imoca/count-min-sketch
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
This package is auto-updated.
Last update: 2025-10-19 20:06: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/countminsketchas a dependency in your project'scomposer.jsonfile:{ "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