brycebaril / node-stats-lite

A light statistical package that operates on Arrays.
MIT License
74 stars 11 forks source link

Add support for custom histogram min/max limits #15

Open yelworc opened 4 years ago

yelworc commented 4 years ago

Hi, thanks for the useful lib!

This PR adds another histogram parameter for a specific use case I have (multiple sets of values that should all be visualized with the same histogram parameters, for comparability).

I tried to keep the code changes minimal, but I'm open to additional changes if you'd prefer a different solution (e.g. one could consider a more flexible generic options parameter, instead of appending more single values).