function y = sigma(x)
% SIGMA Implements the sigmoid function: y = 1 / (1 + exp(-x)).
% SIGMA(X), where X is any input value, returns the result of the
% sigmoid function applied to X.

y = 1 ./ (1 + exp(-x));
