Diff of /sigmoid.m [000000] .. [0e6e15]

Switch to unified view

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