jStat-es - JavaScript Statistical Library
This is an ES Version of jStat.
Support tree-shaking to minimize bundle size.
npm install jstat-es
yarn add jstat-es
Bundle size
Tree-shakable; Whole module: ~50KB Minified, ~18KB Gzipped + Minified.
Same as the original jStat.
Using ES6
import {gamma, lognormal, tscore} from 'jstat-es';
import {jStat} from 'jstat-es';
import jStat from 'jstat-es';
Using CommonJS
const {jStat} = require('jstat-es');
const {gamma, lognormal, tscore} = require('jstat-es');
Using UMD build in a Browser
<script src="node_modules/jstat-es/dist/jstat.min.js"></script>
<script>
jStat.zeros(2);
jStat().ones(2);
...
</script>
Internal changes compared to the original jStat
jStat.extend
is removed.- Reworked tests.
- Reworked build process.
- Documentation breaks now. Rethinking a new way to document.