chaotic_prediction2(testing).m

来自「This program is to one-step EEG predicti」· M 代码 · 共 22 行

M
22
字号
%% 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 ( -0.5*((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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?