上传者: zhanghanqmx
|
上传时间: 2021-08-03 22:06:32
|
文件大小: 464B
|
文件类型: TXT
clc,clear
load pre.txt %原始数据以列向量的方式存放在纯文本文件中
yt=pre; n=length(yt);
alpha=0.3; st1(1)=yt(1); st2(1)=yt(1);
for i=2:n
st1(i)=alpha*yt(i)+(1-alpha)*st1(i-1);
st2(i)=alpha*st1(i)+(1-alpha)*st2(i-1);
end
......