neat-genetic-mario/neat-mario/mathFunctions.lua
2017-11-20 21:49:39 -06:00

9 lines
No EOL
107 B
Lua

--Notes here
local _M = {}
function _M.sigmoid(x)
return 2/(1+math.exp(-4.9*x))-1
end
return _M