We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42063cf commit 1da7d93Copy full SHA for 1da7d93
sigmoid_function.m
@@ -1,7 +1,10 @@
1
function [sigm,d_sigm] = sigmoid_function(x)
2
-%UNTITLED Summary of this function goes here
3
-% Detailed explanation goes here
+%SIGMOID_FUNCTION Function to calculate de sigmoid function and his derivate.
+
4
sigm = 1./(1+exp(-x));
5
6
+% the derivate expression is expresed in this way to improve the
7
+% eficiency. Look the way in which is used in the code and you will understand.
8
d_sigm = x.*(1-x);
9
end
10
0 commit comments