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

📄 canon_reset_fun.m

📁 bnn神经网络
💻 M
字号:
function updated_state_vector = canon_reset_fun(state_vector , event_index)
% CANON_RESET_FUN   Reset function for canonical phase model
% 
%   Version:    1.0
%   ----------------------------------
%   Amir Reza Saffari Azar, August 2004
%   amir@ymer.org
%   http://www.ymer.org
%   http://ee.sut.ac.ir/faculty/saffari/main.index

global net

%---updating states
neuron_weight           = net.Architecture.NeuronWeight;
neuron_num              = net.Architecture.NeuronNum;
spikers                 = zeros(neuron_num , 1);
spikers(event_index)    = 1;

state_vector            = state_vector(end , :)';

updated_state_vector    = mod(state_vector + (1 + cos(state_vector)).*(neuron_weight*spikers) , 2*pi);

return

⌨️ 快捷键说明

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