Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alejogs4/statistics.js
statistics
https://github.com/alejogs4/statistics.js
Last synced: about 13 hours ago
JSON representation
statistics
- Host: GitHub
- URL: https://github.com/alejogs4/statistics.js
- Owner: alejogs4
- License: mit
- Created: 2018-08-11T03:42:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T03:32:46.000Z (about 6 years ago)
- Last Synced: 2024-11-09T06:56:09.334Z (7 days ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# statistics.js
Statistics is a library to get data for describe the behavior of many data setsThe library has one class to get every data of decriptive statistics
```javascript
const { DescriptiveStatistics } = require('@alejogs4/statistics')const proof = new DescriptiveStatistics(array)
```The array should be an array of numbers
## DescriptiveStatistics methods
### avg
Should return the average of data set### mode
Take your set of data and return the most repeated value### median
Get the value that divide the sample in two parts### percentile
Get the percentile of data set
This function need one parameter that is the percent of your percentile### iqr
Get the difference between percentile 75 and percentile 25### range
Get the difference between the max element of your sample and the min element### variance
Get the variance of the data respect their average### standardDeviation
Get the standard deviation that is equal to square root of variance### variationCoefficient
Get how many times the standard deviation is in the average