Comments (4)
Can you explain in a bit more detail?
from bloomfilter.js.
in normal array
beasts = ['ant', 'bison', 'camel', 'duck'];
we can get index of elements like this
beasts.indexOf('bison')
beasts.indexOf('duck')
in bloom lets say we add this elements 'ant', 'bison', 'camel', 'duck'
how to calculate 'bison' index or is it possible ?
from bloomfilter.js.
it possible ?
from bloomfilter.js.
In a bloom filter, a given element doesn't necessarily have single index. The closest equivalent would be to get the positions in the bit vector (which you can do using .locations()
in this library. If you want to know about how bloom filters work, I made an interactive visualisation here.
from bloomfilter.js.
Related Issues (18)
- Use optimal m/k given n/p option HOT 3
- fnv-plus HOT 2
- contrib/ directory containing Python version? HOT 2
- add empty bloomfilter bits function HOT 1
- Too many false positives HOT 9
- Possible to serialize? HOT 1
- Create function to serialize/deserialize bloom filter HOT 1
- Release to bower HOT 2
- Adding filters HOT 1
- Is remove function on the plan? HOT 2
- License clarification HOT 3
- use the 64-bit trick in the linked post
- To Typescript?
- bloom.buckets doesn't work
- False positives HOT 3
- Provide an estimate of the number of items in filter HOT 1
- Deserialization works only if filter's length in bits is divisible by 32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloomfilter.js.