distillate 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +62 -10
  2. package/dist/blocked/index.cjs +1 -1
  3. package/dist/blocked/index.js +1 -1
  4. package/dist/bloom/index.cjs +3 -4
  5. package/dist/bloom/index.d.cts +12 -2
  6. package/dist/bloom/index.d.ts +12 -2
  7. package/dist/bloom/index.js +2 -3
  8. package/dist/bytes-Be7tq1F7.js +9 -0
  9. package/dist/bytes-D2duG1jq.cjs +14 -0
  10. package/dist/countmin/index.cjs +203 -0
  11. package/dist/countmin/index.d.cts +191 -0
  12. package/dist/countmin/index.d.ts +191 -0
  13. package/dist/countmin/index.js +191 -0
  14. package/dist/cuckoo/index.cjs +2 -2
  15. package/dist/cuckoo/index.js +2 -2
  16. package/dist/fuse/index.cjs +1 -1
  17. package/dist/fuse/index.js +1 -1
  18. package/dist/{hasher-3Cyn7Yg-.js → hasher-DOdmZ-LI.js} +1 -8
  19. package/dist/{hasher-MhY7aQ8F.cjs → hasher-DPXmP7SH.cjs} +2 -9
  20. package/dist/hll/index.cjs +10 -4
  21. package/dist/hll/index.d.cts +13 -2
  22. package/dist/hll/index.d.ts +13 -2
  23. package/dist/hll/index.js +9 -3
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/scalable/index.cjs +5 -6
  27. package/dist/scalable/index.js +2 -3
  28. package/dist/{bitset-QYGqxnEf.cjs → sizing-Ch0SDdza.cjs} +15 -0
  29. package/dist/{bitset-Cf2jwRJX.js → sizing-zxCBlyhO.js} +10 -1
  30. package/dist/topk/index.cjs +423 -0
  31. package/dist/topk/index.d.cts +207 -0
  32. package/dist/topk/index.d.ts +207 -0
  33. package/dist/topk/index.js +411 -0
  34. package/package.json +17 -1
  35. package/dist/sizing-BLzZk2zr.cjs +0 -28
  36. package/dist/sizing-BtUrtvF_.js +0 -17
  37. package/dist/sizing-wYOW27eY.d.cts +0 -22
  38. package/dist/sizing-wYOW27eY.d.ts +0 -22
@@ -1,22 +0,0 @@
1
- //#region src/core/sizing.d.ts
2
- /** Bloom filter geometry: the `BloomParams` fields a sizing solve determines. */
3
- interface BloomSizing {
4
- /** Number of bits in the filter. */
5
- m: number;
6
- /** Number of hash probes per key. */
7
- k: number;
8
- }
9
- /** Optimal Bloom-filter sizing: `m` bits and `k` hashes for `n` items at target FPR `epsilon`. */
10
- declare function bloomSizing(n: number, epsilon: number): BloomSizing;
11
- /** HyperLogLog geometry: the `HllParams` fields a sizing solve determines. */
12
- interface HllSizing {
13
- /** Precision: the sketch holds `2 ** p` registers. */
14
- p: number;
15
- }
16
- /**
17
- * Smallest precision whose standard error `1.04 / sqrt(2 ** p)` meets
18
- * `relativeError`. Throws {@link ParamError} when even `HLL_MAX_P` cannot.
19
- */
20
- declare function hllSizing(relativeError: number): HllSizing;
21
- //#endregion
22
- export { hllSizing as i, HllSizing as n, bloomSizing as r, BloomSizing as t };
@@ -1,22 +0,0 @@
1
- //#region src/core/sizing.d.ts
2
- /** Bloom filter geometry: the `BloomParams` fields a sizing solve determines. */
3
- interface BloomSizing {
4
- /** Number of bits in the filter. */
5
- m: number;
6
- /** Number of hash probes per key. */
7
- k: number;
8
- }
9
- /** Optimal Bloom-filter sizing: `m` bits and `k` hashes for `n` items at target FPR `epsilon`. */
10
- declare function bloomSizing(n: number, epsilon: number): BloomSizing;
11
- /** HyperLogLog geometry: the `HllParams` fields a sizing solve determines. */
12
- interface HllSizing {
13
- /** Precision: the sketch holds `2 ** p` registers. */
14
- p: number;
15
- }
16
- /**
17
- * Smallest precision whose standard error `1.04 / sqrt(2 ** p)` meets
18
- * `relativeError`. Throws {@link ParamError} when even `HLL_MAX_P` cannot.
19
- */
20
- declare function hllSizing(relativeError: number): HllSizing;
21
- //#endregion
22
- export { hllSizing as i, HllSizing as n, bloomSizing as r, BloomSizing as t };