https://github.com/bytespider/average
The result obtained by adding several amounts together and then dividing this total by the number of amounts; the mean.
https://github.com/bytespider/average
Last synced: 9 months ago
JSON representation
The result obtained by adding several amounts together and then dividing this total by the number of amounts; the mean.
- Host: GitHub
- URL: https://github.com/bytespider/average
- Owner: bytespider
- License: mit
- Created: 2014-01-30T13:53:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T09:58:57.000Z (over 5 years ago)
- Last Synced: 2025-06-02T17:54:02.527Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# average
The matematical average, the result obtained by adding several amounts together and then dividing this total by the number of amounts; the mean.
# example
```
var average = require('average');
var result = average([2, 5, 0, 1, 25, 7, 3, 0, 0, 10]);
console.log('The average for all the values is:', result);
```
# license
MIT