Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@santi100a/statlib

santi100a10MIT0.0.1TypeScript support: included

Santi's Statistics Library

central-tendency, dispersion, math, santi100a, statistics

readme

Santi's Statistics Library

This library has a few modules that help you easily calculate things like variance, standard deviation, mean, median and mode.

Installation

  • NPM/PNPM: npm install @santi100a/statlib or pnpm install @santi100a/statlib
  • Yarn: yarn add @santi100a/statlib

Usage example


const statlib = require('@santi100a/statlib');

statlib.average([1, 2, 3, 4, 5]); // => 3
statlib.median([1, 2, 3, 4, 5]); // => [3]

changelog

Changelog

Version 0.0.1

First version!