math-statistics
This module provides functions for statistical data analysis.
Getting Started
Installation
npm install math-statistics --save
Integration
var statistics = ;
API
statistics.mean(data)
Returns the mean (average) of the numerical data
.
statistics === NaNstatistics === -1statistics === 24statistics === 2625
statistics.median(data)
Returns the median (middle value) of the numerical data
.
statistics === NaNstatistics === -1statistics === 3statistics === 4statistics === 4
Running Tests
To run the test suite first install the development dependencies:
npm install
then run the tests:
npm test