code wiki / _hdl_build / nx_analyst_multi.nx

nx_analyst_multi.nx

buildroot/runtime/_hdl_build/nx_analyst_multi.nx

4238 B102 linesdepth 3pulls 3 transitivereach 20 importersview sourcekind librarytopic analyst
docsdependenciesstructsconstsfunctions

about

nx_analyst_multi.nx -- LIB: MULTI-COLUMN relationship analysis -- the "find patterns" half of the general data analyst (rung 3). Integer Pearson correlation between two columns + a data-driven strength class + a KEY-DRIVER finder (which of N candidate columns most correlates with a target). Composes nx_dataframe. OVERFLOW-AWARE: uses CENTERED sums (subtract the integer mean first) so intermediates stay ~n*V^2 rather than n^2*V^2 -- safe for moderate n*V (documented bound); i128/normalized scale = the follow-on for very large streams. license_tier: ORIGINAL

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_dataframe.nx nx_analyst_multi.nx nx_analyst_infer.nx nx_analyst_insight.nx nx_analyst_multi_gate.nx nx_analyst_report.nx

imports: nx_syscalls.nxnx_dataframe.nx

imported by: nx_analyst_infer.nxnx_analyst_insight.nxnx_analyst_multi_gate.nxnx_analyst_report.nx

structs

none

consts

10const AM_R_DEGENERATE: i64 = 0 - 2000 // sentinel: a column has zero variance -> correlation undefined

functions

14func am_pearson_milli(x: *i64, y: *i64, n: i64) -> i64
43func am_covariance(x: *i64, y: *i64, n: i64) -> i64
called by 1: main calls 2: sys_mmapdf_mean
56func am_class(r_milli: *u8, r: i64, out: *u8) -> i64
83func am_key_driver(target: *i64, cols: *i64, ncol: i64, n: i64, out_idx: *i64, out_r: *i64) -> i64
called by 2: mainar_analyze calls 1: am_pearson_milli