1.0.5 • Published 5 years ago

stat-functions v1.0.5

Weekly downloads
25
License
ISC
Repository
github
Last release
5 years ago

📈 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)

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago