[0e6e15]: / sigmoid.m

Download this file

9 lines (5 with data), 135 Bytes

1
2
3
4
5
6
7
8
function g = sigmoid(z)
%SIGMOID Compute sigmoid functoon
% J = SIGMOID(z) computes the sigmoid of z.
g = 1 ./ (1 + exp(-z));
end