Returns the probability that plain #mightContain(Object) will erroneously return true for an object that has not actually been put in the BloomFilter. Ideally, this number should be close to the fpp parameter passed in plain #create(Funnel, int, double), or
()
| 186 | |
| 187 | |
| 188 | public double expectedFpp() { |
| 189 | // You down with FPP? (Yeah you know me!) Who's down with FPP? (Every last homie!) |
| 190 | return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions); |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Returns the number of bits in the underlying bit array. |