mirror of
https://github.com/philips/supernote-obsidian-plugin.git
synced 2026-07-22 09:50:25 +00:00
Since there is no native code I am just checking all of the dependencies in to simplify life and avoid a hard dependency on npm working on any given day. |
||
|---|---|---|
| .. | ||
| lib | ||
| lib-es6 | ||
| src | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| types.d.ts | ||
array-median
Get the median value in an array, this median use the Floyd-Rivest algorithm.
Thanks to mad-gooze for his median-quickselect lib.
Some benchmarks here.
Installation
$ npm install --save ml-array-median
Usage
import median from 'ml-array-median';
const result = median([1, 5, 3, 2, 4]);
// 3