Calculates Ribbon filter fingerprint bits for a false positive rate.
Fingerprint bits are rounded up, so the actual false positive rate is 2^-fingerprintBits, at most errorRate, and no lower than 2^-32.
errorRate
Desired false positive probability, between 0 and 1.
The fingerprint bits to use.
import { optimal } from '@pacote/ribbon-filter'const options = optimal(0.01) Copy
import { optimal } from '@pacote/ribbon-filter'const options = optimal(0.01)
Calculates Ribbon filter fingerprint bits for a false positive rate.
Fingerprint bits are rounded up, so the actual false positive rate is 2^-fingerprintBits, at most
errorRate, and no lower than 2^-32.