⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chaotic_prediction2(test).m

📁 This program is prepared as an one-step EEG predictor. this is used a fuzzy neural network which is
💻 M
字号:
%% Testing the network
load W
load C
load f
m  = 7;
ERROR = [];
input_test = test_set;
a = 0;
b = 0;
M = ones(1,7);
y = 0;
for r = 1 : 299
    input = input_test(r-6:r);
    for j = 1:7
        for i = 1:7
            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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -