"""Implement Wilder smoothing with SMA seed.

The first output occurs only after n inputs; subsequent values use weight 1/n.
All inputs are synthetic teaching examples. Run: python 16_wilder-smoothing.py
"""
from tv_math import *

v=rma([1,2,3,6],3)
assert v[:3]==[None,None,2] and abs(v[3]-10/3)<1e-12
print(v)
