code wiki / (root) / sketch_mann_kendall_vs_endpoint_bench.nx

sketch_mann_kendall_vs_endpoint_bench.nx

buildroot/runtime/sketch_mann_kendall_vs_endpoint_bench.nx

3334 B90 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind benchtopic sketch
docsdependenciesstructsconstsfunctions

about

sketch_mann_kendall_vs_endpoint_bench.nx -- trend detection bench. CLAIM: Mann-Kendall (1945/1948) tests trend via signed pairwise comparisons; robust to outliers and noise. Endpoint baseline (compare first vs last value) is naive and fragile to noise. WORKLOAD: Trended series y_t = 100 + 5*t + noise, t=1..50 -> MK should detect. Stationary noisy series with same noise -> MK should NOT detect. Endpoint baseline: classify if (last - first) > 50 -> trend. Endpoint can be fooled by noisy endpoints.

dependencies 4 imports · 0 importers

syscalls.nx sketch_mann_kendall.nx sketch_comparator.nx sketch_types.nx sketch_mann_kendall_vs_endpoin

imports: syscalls.nxsketch_mann_kendall.nxsketch_comparator.nxsketch_types.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_mk_alloc nx_mk_push nx_mk_recompute_s nx_mk_sign nx_mk_sign ↻ nx_mk_verdict nx_mk_var_s nx_mk_s

structs

none

consts

18const NX_MKE_LCG_A: i64 = 1103515245
19const NX_MKE_LCG_C: i64 = 12345
20const NX_MKE_LCG_MOD: i64 = 0x7FFFFFFF

functions

22func main() -> i64