📄 chaotic_prediction_testing.m
字号:
%% Testing the network
ERROR = [];
input_test = x;
a = 0;
b = 0;
M = ones(1,3);
y = 0;
for r = 1200 : 1499
input = input_test(r-2:r);
for j = 1:3
for i = 1:3
M(j) = M(j) * exp ( -((input(i) - C(i,j)) / W(i,j))^2 );
end
a = a + f(j) * M(j);
b = b + M(j);
end
y = a / b;
input_test(r+1) = y;
% ERROR = [ERROR ,0.5*(input_test (r+1)-x(r+1)).^2];
end
figure
plot(input_test(1200:1500)); hold on
plot(x(1200:1500),'r');
% plot(ERROR, 'DisplayName', 'ERROR', 'YDataSource', 'ERROR'); figure(gcf)
%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -