Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CDSecLab/MJXT
/ getBestK
Method
getBestK
src/main/java/utils/Bloom.java:19–21 ·
view source on GitHub ↗
(double bitsPerKey)
Source
from the content-addressed store, hash-verified
17
}
18
19
private
static
int
getBestK(double bitsPerKey) {
20
return
Math.max(1, (
int
) Math.round(bitsPerKey * Math.log(2)));
21
}
22
23
private
final
int
k;
24
private
final
long bits;
Callers
1
construct
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected