[][src]Module super_mass::stats

Structs

RollingMean
RollingStd

Enums

Append

append insertion enum for fn append().

Functions

append

Append a sequence of a constant value into the front or back of a Slice.

mean

$$E_[X]$$

moving_avg

Moving Average of X

moving_std

Moving standard deviation from X

normalization

Normalize X into $\frac{X - \mu }{\sigma}$

rolling_mean

compute the moving mean in $$O(n)$$ time, favorable over iterating over windows with complexity $$O(nm),\quadm:window size$$ $$ \mu_i = \frac{-a_{i-n} + S_{i-n:i-1} +a_i}{n}$$

rolling_std

compute the moving mean in $$O(n)$$ time.

std

Standard Deviation of X

var

$$Var[X]$$