Skip to main content

Module series

Module series 

Source

Structsยง

LinearRegression

Constantsยง

HALVING_DIVISOR ๐Ÿ”’
MIN_POINTS_FOR_PAIR_STATS ๐Ÿ”’
SQUARE_EXP ๐Ÿ”’

Functionsยง

correlation
Compute Pearson correlation coefficient.
covariance
Compute sample covariance between two slices.
ema
Exponential moving average with smoothing factor alpha (0-1).
ema_span
EMA with span-based smoothing: alpha = 2 / (span + 1).
linear_regression
Compute simple linear regression using least squares.
sma
Simple moving average with window size.