Created
July 30, 2012 05:31
-
-
Save pminkov/3205075 to your computer and use it in GitHub Desktop.
Sigmoid function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function g = sigmoid(z) | |
%SIGMOID Compute sigmoid functoon | |
% J = SIGMOID(z) computes the sigmoid of z. | |
g = arrayfun( @(x) 1 / (1 + e^(-x)), z); | |
% ============================================================= | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment