public static BloomSpecification computeBloomSpec ( int bucketsPerElement ) { assert bucketsPerElement >= 1 ; assert bucketsPerElement <= probs . length - 1 ; return new BloomSpecification ( optKPerBuckets [ bucketsPerElement ] , bucketsPerElement ) ; }
Given the number of buckets that can be used per element return a specification that minimizes the false positive rate .