stat-functions

1.0.5Β β€’Β PublicΒ β€’Β Published

πŸ“ˆ stat-functions

A collection of common statistics formulas.


Install

npm i stat-functions
yarn add stat-functions

Usage

Import stat-functions methods into your project.

import { sum, mean } from 'stat-functions';

Pass in dataset as an array of numbers (along with other arguments if applicable).

sum([ 1, 2, 3 ]); // 6
percentile([ 1, 2, 3 ], .3); // 1

Available Methods

  • sum(dataset)

  • median(dataset)

  • mean(dataset)

  • mode(dataset)

  • range(dataset)

  • stdDev(dataset)

  • mad(dataset)

  • madWinsorize(dataset, madF)

  • percentile(dataset, k)

Readme

Keywords

Package Sidebar

Install

npm i stat-functions

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

24.2 kB

Total Files

6

Last publish

Collaborators

  • pigeontoe