Skip to content

Commit 1da7d93

Browse files
authored
[ADD] function Documentation
1 parent 42063cf commit 1da7d93

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sigmoid_function.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
function [sigm,d_sigm] = sigmoid_function(x)
2-
%UNTITLED Summary of this function goes here
3-
% Detailed explanation goes here
2+
%SIGMOID_FUNCTION Function to calculate de sigmoid function and his derivate.
3+
44
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.
58
d_sigm = x.*(1-x);
69
end
710

0 commit comments

Comments
 (0)