:1ָƽ㷨Ԥʱ

ʽ:
[y,x]=ForecastExpSmooth1(x0,n,a,onea)
[y,x]=ForecastExpSmooth1(x0,n,a)
[y,x]=ForecastExpSmooth1(x0,n)
[y,x]=ForecastExpSmooth1(x0)

x0:ԭʼʱо
n:صʱи,ݴСָxԪظ,ĬnΪx0Ԫظ
a:ϵ,ĬΪ0.5
onea:aӦϵ,ĬΪ1

ԭ:
1y(1)=x0(1)
2y(i)=a*x0(i)+(onea-a)*y(i-1),i>1
3x(i)=x0(i),in ; x(i)=y(n),i>n

ο:{Exponential Smoothing<https://en.wikipedia.org/wiki/Exponential_smoothing>}