Sigmoid Function
1. Introduction
To limit all data within the range of 0 to 1.
2. Formula
y=11+e−x
3. Implementation
3.1 Octave
x = linspace(-10, 10 ,10000);
y = zeros( size(x, 1), size(x, 2));
for i = 1:length(x)
y(i) = 1/(1+e^(-x(i)));
endfor
figure();
plot( x,y);
grid on;
xlabel("x");
ylabel("y=1/(1+e^-x)");
title("Sigmoid Function");
Output figure