code wiki / _hdl_build / nx_timeseries.nx

nx_timeseries.nx

buildroot/runtime/_hdl_build/nx_timeseries.nx

2915 B79 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_dataframe.nx nx_timeseries.nx nx_timeseries_gate.nx

imports: nx_syscalls.nxnx_dataframe.nx

imported by: nx_timeseries_gate.nx

structs

none

consts

8const TS_FLAT: i64 = 0
9const TS_RISING: i64 = 1
10const TS_FALLING: i64 = 2

functions

13func ts_rolling_mean(col: *i64, n: i64, w: i64, out: *i64) -> i64
called by 1: main
31func ts_linear_trend(col: *i64, n: i64, out_slope_milli: *i64, out_intercept: *i64) -> i64
called by 1: main
56func ts_trend_class(slope_milli: i64, flat_band_milli: i64) -> i64
called by 1: main
64func ts_class_str(cls: i64) -> *u8
called by 1: main
71func ts_growth_permil(col: *i64, n: i64) -> i64
called by 1: main