membershape
v1.1.3
Published
JS module for n-shaped membership function (fuzzy)
Downloads
6
Maintainers
Readme
membershape
install
npm i membershape
use
var mShape = require('membershape').mShape
var val = mShape(85, [0,40,60,80,90,100])
console.log(val) // 75
function: mShape
mShape(value, shape, [scale])
value
Number: value to test
shape
Array: shape
scale
OPTIONAL Number: scale of shape, default is 100