bloom-text-compare

0.0.0 • Public • Published

Bloom Text Compare

Installation

npm install bloom-text-compare

Usage

var btc = require('bloom-text-compare');
 
var hash1 = btc.hash(['an', 'example', 'of', 'a', 'word', 'list']);
// returns an array of 10 x 32 bit integers
 
var hash2 = btc.hash(['another', 'example', 'of', 'a', 'word', 'list']);
 
var distance = btc.compare(hash1, hash2);
// returns a number between 0 and 1

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i bloom-text-compare

Weekly Downloads

1

Version

0.0.0

License

MIT

Last publish

Collaborators

  • richard.astbury