MCPcopy Create free account
hub / github.com/ElementsProject/elements / FalsePositiveRate

Method FalsePositiveRate

src/leveldb/util/bloom_test.cc:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 double FalsePositiveRate() {
67 char buffer[sizeof(int)];
68 int result = 0;
69 for (int i = 0; i < 10000; i++) {
70 if (Matches(Key(i + 1000000000, buffer))) {
71 result++;
72 }
73 }
74 return result / 10000.0;
75 }
76
77 private:
78 const FilterPolicy* policy_;

Callers

nothing calls this directly

Calls 1

KeyFunction · 0.70

Tested by

no test coverage detected