awesome-sigmoid
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -8,8 +8,10 @@ "use strict"; | ||
const sigmoid = (x, gain) => (Math.tanh(gain * x / 2) + 1) / 2; | ||
var sigmoid = function sigmoid(x, gain) { | ||
return (Math.tanh(gain * x / 2) + 1) / 2; | ||
}; | ||
exports.sigmoid = sigmoid; | ||
const makeAwesomeSigmoid = (_ref) => { | ||
let center = _ref.center, | ||
var makeAwesomeSigmoid = function makeAwesomeSigmoid(_ref) { | ||
var center = _ref.center, | ||
deviation = _ref.deviation, | ||
@@ -22,4 +24,6 @@ deviation_output = _ref.deviation_output; | ||
*/ | ||
const gain = Math.log(-1 * deviation_output / (deviation_output - 1)) / deviation; | ||
return x => sigmoid(x - center, gain); | ||
var gain = Math.log(-1 * deviation_output / (deviation_output - 1)) / deviation; | ||
return function (x) { | ||
return sigmoid(x - center, gain); | ||
}; | ||
}; | ||
@@ -26,0 +30,0 @@ |
{ | ||
"name": "awesome-sigmoid", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "generate perfect sigmoid function for you", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -27,4 +27,4 @@ # awesome-sigmoid | ||
## License | ||
## license | ||
`awesome-sigmoid` is MIT licensed. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4170
34