vinayarun

Sigmoid function code

Mar 16th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.06 KB | None | 0 0
  1. function g = sigmoid(z)
  2.  
  3. g = 1.0 ./ (1.0 + exp(-z));
  4.  
  5. end
Add Comment
Please, Sign In to add comment