Skip to main content

nodedb_query/ts_functions/
mod.rs

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