A small JavaScript library for approximation of median value on a streaming data.
- no dependencies: no need to worry about conflicts
- robust algorithm: library is based on Remedian algorithm
const Remedian = require('remedian');
const remedian = new Remedian();
remedian.write(1);
remedian.write(2);
remedian.write(3);
// ...
remedian.write(99);
console.log('My approximate median is ', remedian.approximate());
npm install remedian