Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awesome-sigmoid

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-sigmoid - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

14

lib/index.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc