📄 evolveleakyintfire.m
字号:
% evolveLeakyIntFire - evolves an LIF network by one time step.%% [LIF,spikes] = evolveLeakyIntFire(LIF,t)% Computes on integration step of length t for the network % of leaky integrate and fire neurons in LIF, return the % new LIF neurons, and return a vector of spiking activity % (0 or 1) in spikes.%% See also defaultLeakyIntFire, evolveWTA, dataStructures.% This file is part of the SaliencyToolbox - Copyright (C) 2006-2007% by Dirk B. Walther and the California Institute of Technology.% See the enclosed LICENSE.TXT document for the license agreement. % More information about this project is available at: % http://www.saliencytoolbox.netfunction [LIF,spikes] = evolveLeakyIntFire(LIF,t)dt = t - LIF.time;% integrateLIF.V = LIF.V + dt./LIF.C * (LIF.I - LIF.Gleak.*(LIF.V - LIF.Eleak) - ... LIF.Gexc.*(LIF.V - LIF.Eexc) - ... LIF.Ginh.*(LIF.V - LIF.Einh)); % clamp potentials that are lower than Einhidx = (LIF.V < LIF.Einh);if (length(LIF.Einh) > 1) LIF.V(idx) = LIF.Einh(idx);else LIF.V(idx) = LIF.Einh;end% let Ginh decay (for IOR to wear off)LIF.Ginh = LIF.Ginh * LIF.GinhDecay; % fire?spikes = (LIF.V > LIF.Vthresh) & LIF.DoesFire;% reset units that have just firedLIF.V(spikes) = 0; LIF.time = t;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -