neat-genetic-mario/neat-mario/FitnessChangesOnly/mathFunctions.lua

9 lines
107 B
Lua
Raw Normal View History

2017-11-29 10:21:02 -06:00
--Notes here
local _M = {}
function _M.sigmoid(x)
return 2/(1+math.exp(-4.9*x))-1
end
return _M