This Gist was automatically created by Carbide, a free online programming environment.
Created
August 26, 2016 13:31
-
-
Save carbide-public/eb56d8c8aa032c370323557c2f0bff0b to your computer and use it in GitHub Desktop.
untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sigm = function(z) { | |
return 1 / (1 + Math.pow(2.71828,-z)) ; | |
} | |
var data = []; | |
for (var i = -100; i < 100; i++) { | |
data.push(sigm(i / 100)); | |
} | |
data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment