code wiki / _hdl_build / nx_dataframe_approx.nx
nx_dataframe_approx.nx
buildroot/runtime/_hdl_build/nx_dataframe_approx.nx
about
nx_dataframe_approx.nx -- LIB: wire the DORMANT sketch primitives behind the aggregation front door
(nx_dataframe). The 07-10 audit found nx_sketch_hll (HLL++) and nx_sketch_tdigest (Dunning) genuinely
real but ORPHANED -- and their accuracy claims UNMEASURED (headers: ReferenceImpl / NOT_YET_EVALUATED).
This lib gives the store-facing calls (approx distinct + approx quantile AT SCALE) and its gate MEASURES
estimate error against exact ground truth computed independently -- killing the unmeasured-claim debt.
license_tier: ORIGINAL
dependencies 4 imports · 2 importers
imports: nx_syscalls.nxnx_dataframe.nxnx_sketch_hll.nxnx_sketch_tdigest.nx
imported by: nx_analyst_data.nxnx_dataframe_approx_gate.nx
structs
| none |
consts
| none |
functions
| 13 | func dfa_distinct(col: *i64, n: i64, lg_k: i64) -> i64 |
| 36 | func dfa_distinct_exact(col: *i64, n: i64, scratch: *i64, max_d: i64) -> i64 called by 1: main |
| 51 | func dfa_quantile(col: *i64, n: i64, q_permil: i64, delta: i64) -> i64 |
| 60 | func dfa_err_permil(est: i64, exact: i64) -> i64 called by 1: main |