:3ָƽۼ㷨Ԥʱ

ʽ:
[y,x]=ForecastExpSmoothAdd(x0,m,n,a,b,c,onea,oneb,onec)
[y,x]=ForecastExpSmoothAdd(x0,m,n,a,b,c,onea,oneb)
[y,x]=ForecastExpSmoothAdd(x0,m,n,a,b,c,onea)
[y,x]=ForecastExpSmoothAdd(x0,m,n,a,b,c)
[y,x]=ForecastExpSmoothAdd(x0,m,n,a,b)
[y,x]=ForecastExpSmoothAdd(x0,m,n,a)
[y,x]=ForecastExpSmoothAdd(x0,m,n)
[y,x]=ForecastExpSmoothAdd(x0)

x0:ԭʼʱо
m:ʱ.ֵΪ0
n:صʱи,ݴСָxԪظ,ĬnΪx0Ԫظ
a:ϵ,ĬΪ0.5
b:ϵ,ĬΪ0.5
c:ϵ,ĬΪ0.5
onea:aӦϵ,ĬΪ1
oneb:bӦϵ,ĬΪ1
onec:bӦϵ,ĬΪ1

ԭ:
1y(1)=x0(1)
2t=x0(2)-x0(1)
3p=0
4i=2,3,
   y(i)=a*(x0(i)-p(i mod m))+(onea-a)*(y(i-1)+t)
   t=b*(y(i)-y(i-1))+(oneb-b)*t
   p(i mod m)=c*(x0(i)-y(i))+(onec-c)*p(i mod m)
5x(i)=x0(i),in;x(i)=y(n)+t*(i-n)+p(i mod m)

ע:㷨Holt-Winters㷨

ο:
{Holt-Winters<http://www.dataguru.cn/article-3235-1.html>}
{Exponential Smoothing<https://en.wikipedia.org/wiki/Exponential_smoothing>}