Skip to content

Files

Latest commit

May 28, 2022
98be6c6 · May 28, 2022

History

History
37 lines (25 loc) · 991 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 991 Bytes

remedian-js

A small JavaScript library for approximation of median value on a streaming data.

MIT license npm

Features

  • no dependencies: no need to worry about conflicts
  • robust algorithm: library is based on Remedian algorithm

Example

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());

Install

npm install remedian

References