sigmoid.m 137 B

123456
  1. function g = sigmoid(z)
  2. %SIGMOID Compute sigmoid functoon
  3. % J = SIGMOID(z) computes the sigmoid of z.
  4. g = 1.0 ./ (1.0 + exp(-z));
  5. end