Approximate the density (PDF) from a histogram for given bins
- Install
yarn add histpdf@0.1.0
- Load package
import { histpdf } from 'histpdf';
const data = Array.from({length: 40}, () => Math.random())
const bin_edges = [.1, .25, .5, .75, 9.].sort()
const probas = histpdf(data, bin_edges)
- Login into yarn:
yarn login
- Publish the package:
yarn publish
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) - 433249742. Project duration: 2020-2023.