%figure('position', [0, 0, 800, 800]);
set(0,'defaultAxesFontSize',16);
set(0,'defaultTextFontSize',16);

x = -10:0.01:10;
y = sigmoid(x);
plot(x,y, 'LineWidth',2);
ylim([-0.2,1.2]);
grid on;
saveas(gcf, 'sigmoid_graph.png', 'png');

graph_weight_bias(x, 1.00, 0.00, 'sigmoid_1.00_0.00.eps');
graph_weight_bias(x, 5.00, 0.00, 'sigmoid_5.00_0.00.eps');
graph_weight_bias(x, 10.00, 0.00, 'sigmoid_10.00_0.00.eps');
graph_weight_bias(x, 50.00, 0.00, 'sigmoid_50.00_0.00.eps');
graph_weight_bias(x, 50.00, -50.00, 'sigmoid_50.00_-50.00.eps');
graph_weight_bias(x, 50.00, -100.00, 'sigmoid_50.00_-100.00.eps');

function graph_weight_bias(x, w, b, filename)
    y = sigmoid(w*x+b);
    plot(x,y, 'LineWidth',2);
    ylim([-0.2,1.2]);
    grid on;
    saveas(gcf, filename, 'eps');
end
