neat-genetic-mario/neat-mario/FitnessChangesOnly/mathFunctions.lua
2017-11-29 10:21:02 -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