{"action":"opened","issue":{"url":"https://api.github.com/repos/accord-net/framework/issues/223","repository_url":"https://api.github.com/repos/accord-net/framework","labels_url":"https://api.github.com/repos/accord-net/framework/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/accord-net/framework/issues/223/comments","events_url":"https://api.github.com/repos/accord-net/framework/issues/223/events","html_url":"https://github.com/accord-net/framework/issues/223","id":147629906,"number":223,"title":"DeepLearning GaussianFunction","user":{"login":"Mazecreator","id":18412448,"avatar_url":"https://avatars.githubusercontent.com/u/18412448?v=3","gravatar_id":"","url":"https://api.github.com/users/Mazecreator","html_url":"https://github.com/Mazecreator","followers_url":"https://api.github.com/users/Mazecreator/followers","following_url":"https://api.github.com/users/Mazecreator/following{/other_user}","gists_url":"https://api.github.com/users/Mazecreator/gists{/gist_id}","starred_url":"https://api.github.com/users/Mazecreator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mazecreator/subscriptions","organizations_url":"https://api.github.com/users/Mazecreator/orgs","repos_url":"https://api.github.com/users/Mazecreator/repos","events_url":"https://api.github.com/users/Mazecreator/events{/privacy}","received_events_url":"https://api.github.com/users/Mazecreator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T04:37:58Z","updated_at":"2016-04-12T04:37:58Z","closed_at":null,"body":"The \" GaussianFunction : IStochasticFunction\" appears to be a linear function not a gaussian.  This is for the DeepLearning ActivationFunction.  the \"Function()\" is as follows:\r\n`\r\n        public double Function(double x)\r\n        {\r\n            double y = alpha * x;\r\n\r\n            if (y > range.Max)\r\n                return range.Max;\r\n            else if (y < range.Min)\r\n                return range.Min;\r\n            return y;\r\n        }`\r\n\r\nI would have expected something like this:\r\n`\r\n        public double Function(double x)\r\n        {\r\n            double y = alpha * Math.Exp(- x*X);\r\n\r\n            if (y > range.Max)\r\n                return range.Max;\r\n            else if (y < range.Min)\r\n                return range.Min;\r\n            return y;\r\n        }`\r\n\r\nThe derivative is incorrect as well.  i used the following reference for the GaussianActivation function:\r\nhttps://en.wikipedia.org/wiki/Activation_function"}}