canon_reset_fun.m
来自「bnn神经网络」· M 代码 · 共 23 行
M
23 行
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 + =
减小字号Ctrl + -
显示快捷键?