Mercurial > hg > machine-learning-hw2
view sigmoid.m @ 5:a4c4da8f4ac0
Style fixes
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 08 Nov 2011 00:56:18 -0500 |
parents | 8b902ada47e9 |
children |
line wrap: on
line source
function g = sigmoid(z) ##SIGMOID Compute sigmoid functoon ## J = SIGMOID(z) computes the sigmoid of z. g = 1./(1 + exp (-z)); endfunction