code wiki / _hdl_build / nx_timeseries.nx
nx_timeseries.nx
buildroot/runtime/_hdl_build/nx_timeseries.nx
about
nx_timeseries.nx -- LIB: TIME-SERIES analytics over an ordered i64 column (rounds out the analytics
primitive set: aggregation + profiling + correlation + NOW time). Windowed rolling mean, least-squares
LINEAR TREND (slope + direction class), and overall growth. Integer/fixed-point (bit-reproducible).
Composes nx_dataframe. license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_dataframe.nx
imported by: nx_timeseries_gate.nx
structs
| none |
consts
| 8 | const TS_FLAT: i64 = 0 |
| 9 | const TS_RISING: i64 = 1 |
| 10 | const TS_FALLING: i64 = 2 |
functions
| 13 | func ts_rolling_mean(col: *i64, n: i64, w: i64, out: *i64) -> i64 called by 1: main |
| 31 | func ts_linear_trend(col: *i64, n: i64, out_slope_milli: *i64, out_intercept: *i64) -> i64 called by 1: main |
| 56 | func ts_trend_class(slope_milli: i64, flat_band_milli: i64) -> i64 called by 1: main |
| 64 | func ts_class_str(cls: i64) -> *u8 called by 1: main |
| 71 | func ts_growth_permil(col: *i64, n: i64) -> i64 called by 1: main |