awesome-sigmoid
v1.0.2
Published
generate sigmoid function flexible and easy
Downloads
151
Readme
awesome-sigmoid
install
npm i awesome-sigmoid --save
example
import makeSigmoid from 'awesome-sigmoid';
const mySigmoid = makeSigmoid({
center: 50,
deviation: 40,
deviation_output: 0.9,
});
console.log(mySigmoid(50)); //0.5
console.log(mySigmoid(90)); //0.9
console.log(mySigmoid(10)); //0.1
console.log(mySigmoid(Infinity)); //1
console.log(mySigmoid(-Infinity)); //0
license
awesome-sigmoid
is MIT licensed.