gema# swordfish.function.gema()# Calculate the Exponential Moving Average (ema) for X in a sliding window of the given length. 参数: X (Constant) -- A vector/matrix/table. window (Constant) -- A positive integer indicating the size of the sliding window. alpha (Constant) -- A floating-point number in (0,1) indicating the smoothing factor alpha.