JSPM

stats-median

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1734
  • Score
    100M100P100Q114442F
  • License MIT

Calculate median of data

Package Exports

  • stats-median

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 (stats-median) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Median Build Status

Calculate median of data.

Installation

$ npm install stats-median

Usage

var median = require('stats-median');

var data = [3, 6, 7, 8, 8, 10, 13, 15, 16, 20];

median.calc(data); // → 9

API

calc(data)

data

Type: array

The data to be analysed; an array of numbers.

License

MIT © Michał Jezierski