0.2.7 • Published 10 years ago

scientific-statistics v0.2.7

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

Scientific statistics

Overview

This module has several simple easy-to-use functions for descriptive statistics like mean, median, variance. Intended to be used in NodeJS. Based on https://github.com/FGRibreau/descriptive_statistics, but unlike it does not mix anything in the existing prototypes.

Installation

 > npm i scientific-statistics

Examples

 > var ds = require('scientific-statistics');
 undefined
 > var data = [2,4,2,54,25,32,5,23,12,43];
 undefined
 > ds.number(data);
 10
 > ds.sum(data);
 202
 > ds.mean(data);
 20.2
 > ds.median(data);
 17.5
 > ds.variance(data);
 339.51111111111106
 > ds.standardDeviation(data);
 18.425827284306965
 > ds.percentile(data, 20);
 3.6
0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago