Module Filters.Ewma

type t
val create : period:int -> t
val update : t -> float -> float

Returns the bias-corrected EWMA after consuming x.

val value : t -> float
val ready : t -> bool

True once the bias-correction weight reaches 0.95 (≈ 3·period samples).

val n : t -> int