Package Exports
- node-quantile
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-quantile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-quantile
使用 node 来计算分位数
用法说明
import Quantile from 'node-quantile';
// const Quantile = require('../').default;
const quantile = new Quantile([6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49]);
console.log(quantile.getPosition(0.25));
console.log(quantile.figure(0.25, 2));