• EMA seeded with an SMA, then smoothed with alpha=2/(period+1). Valid scalar defaults seed from the first complete finite window, retry nonfinite seeds, and emit gaps for missing inputs while retaining seeded state. A nonfinite running update stays committed, without restarting. Supplied skip seeds from period finite observations and holds state across gaps. propagate clears state on any missing input and reseeds with period consecutive finite observations. Warmup is NaN. Invalid option-path periods throw RangeError; malformed options throw TypeError. Periods must be positive safe integers.

    Parameters

    Returns number[]