Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atlassubbed/atlas-mean
https://github.com/atlassubbed/atlas-mean
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/atlassubbed/atlas-mean
- Owner: atlassubbed
- License: other
- Created: 2018-07-15T01:50:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T02:39:19.000Z (over 6 years ago)
- Last Synced: 2024-04-26T20:21:50.506Z (9 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# atlas-mean
Calculates the expectation value of a set of data points.
[![Travis](https://img.shields.io/travis/atlassubbed/atlas-mean.svg)](https://travis-ci.org/atlassubbed/atlas-mean)
---
## install
```
npm install --save atlas-mean
```## why
Breaking up [atlas-dataset](https://github.com/atlassubbed/atlas-dataset#readme) into standalone functions. This module computes the mean value over an array of numbers:
## examples
```javascript
const mean = require("atlas-mean")
console.log(mean([1,2,3,4,5,6,7,8,9,10]))
// 5.5
```