Skip to main content

nodedb_query/ts_functions/
mod.rs

1//! Timeseries SQL function kernels.
2//!
3//! Pure computation on `&[f64]` / `&[i64]` slices — no DataFusion, no Arrow,
4//! no allocator dependency. Shared by Origin, Lite, and WASM.
5
6pub mod bollinger;
7pub mod correlation;
8pub mod delta;
9pub mod derivative;
10pub mod ema;
11pub mod interpolate;
12pub mod moving_avg;
13pub mod moving_percentile;
14pub mod percentile;
15pub mod rate;
16pub mod stddev;
17pub mod zscore;
18
19pub use bollinger::{
20    BollingerResult, ts_bollinger, ts_bollinger_lower, ts_bollinger_mid, ts_bollinger_upper,
21    ts_bollinger_width,
22};
23pub use correlation::{TsCorrelationAccum, ts_correlate};
24pub use delta::ts_delta;
25pub use derivative::ts_derivative;
26pub use ema::ts_ema;
27pub use interpolate::{InterpolateMethod, ts_interpolate};
28pub use moving_avg::ts_moving_avg;
29pub use moving_percentile::ts_moving_percentile;
30pub use percentile::{TsPercentileAccum, ts_percentile_exact};
31pub use rate::ts_rate;
32pub use stddev::{TsStddevAccum, ts_stddev};
33pub use zscore::ts_zscore;