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

📄 prop.m

📁 王小平《遗传算法——理论、应用与软件实现》随书光盘
💻 M
字号:
function out=prop1(in,w,b);
%
% Propagates an input vector
% through one layer of a network
%
% call:
%
% [out]=prop(in,w);
%
% w   = weight matrix
% b   = bias weights (column vector. Same size a second layer)
% in  = input vector
% out = propagated signal
%

%
% Determine the size of the two layers
%
[prsize thsize]=size(w);

%
% Calculate the input for each neuron
% in the second layer
%
net=[];
for i = 1:thsize
	net(i)=sig(sum(in.*w(:,i))+b(i));
end
out=net;

⌨️ 快捷键说明

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