npm install descriptivenpm install descriptive
javascript
import hist from 'descriptive';
// or
var hist = require('descriptive').default;hist([4,4,4,4,4,4,1,1,1,6,6,6,6,6,6,6,7,7,7,7,7,7,7,8,8,8,8,9,9,9], {binCount: 5})
`
Will log to the console:contributing
You will need the
gulp cli: npm install --global gulp-cliThe easiest way to dig in is to run the only gulp task so far,
gulp hist, which takes two optional args: --array and --binCount.So for instance:
gulp hist --array=[1,2,2,3,1] --binCount=3`