OnlineStats does this: Weights · OnlineStats Docs
e.g.
julia> using OnlineStats
julia> x = randn(100);
julia> o = Mean(weight=ExponentialWeight(.1))
Mean: n=0 | value=0.0
julia> exp_smooth = [value(fit!(o, xi)) for xi in x]
OnlineStats does this: Weights · OnlineStats Docs
e.g.
julia> using OnlineStats
julia> x = randn(100);
julia> o = Mean(weight=ExponentialWeight(.1))
Mean: n=0 | value=0.0
julia> exp_smooth = [value(fit!(o, xi)) for xi in x]