3 %>@brief Sigmoid
function
7 %> @param x argument (works with vectors and matrices
as well
8 %> @param hh =45.
"half-height". Defaults to 45 cm^{-1}
9 %> @param flag_demo If passed, will generate its own @c x (passed @c x will be ignored) and a figure
10 function y =
sigfun(x, hh, flag_demo)
14 if nargin < 2 || isempty(hh)
22 y = (1+exp(-s))./(1+exp((x-hh)*s/hh));
28 plot([hh, hh], [0, 1], 'r--');
30 set(gca, 'xtick', [0, hh, hh*2]);
Analysis Session (AS) base class.
function sigfun(in x, in hh, in flag_demo)