sketch_mann_kendall_vs_endpoint_bench.nx
buildroot/runtime/sketch_mann_kendall_vs_endpoint_bench.nx
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
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
structs
| none |
consts
| 18 | const NX_MKE_LCG_A: i64 = 1103515245 |
| 19 | const NX_MKE_LCG_C: i64 = 12345 |
| 20 | const NX_MKE_LCG_MOD: i64 = 0x7FFFFFFF |
functions
| 22 | func main() -> i64 |