MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / getFPR

Method getFPR

src/rnabloom/bloom/SimpleBloomFilter.java:61–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 @Override
62 public float getFPR() {
63 /* (1 - e(-kn/m))^k
64 k = num hash
65 m = size
66 n = pop count
67 */
68
69 popcount = bitArray.popCount();
70 return (float) ((double) popcount / (double) size);
71 }
72
73 public void empty() {
74 if (this.bitArray != null) {

Callers

nothing calls this directly

Calls 1

popCountMethod · 0.45

Tested by

no test coverage detected