canon_threshold_fun.m

来自「bnn神经网络」· M 代码 · 共 21 行

M
21 行
字号
function [value , isterminal , direction] = canon_threshold_fun(t , y)
% CANON_THRESHOLD_FUN   Threshold function for canonical phase model spike
%                       detection
% 
%   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

threshold   = pi;

%---checking for threshold crossing
value       = y - threshold;
isterminal  = ones(size(y));
direction   = ones(size(y));

return

⌨️ 快捷键说明

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