evolveleakyintfire.m

来自「显著区域检测。求的图像中感兴趣区域的位置」· M 代码 · 共 44 行

M
44
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?