Files
lab/ds/25-1/r/12/mlclass-ex3/sigmoid.m
2026-02-13 14:03:28 +03:00

7 lines
137 B
Matlab

function g = sigmoid(z)
%SIGMOID Compute sigmoid functoon
% J = SIGMOID(z) computes the sigmoid of z.
g = 1.0 ./ (1.0 + exp(-z));
end