Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atlassubbed/atlas-mean-square


https://github.com/atlassubbed/atlas-mean-square

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# atlas-mean-square

Calculates the squared quadratic mean of a set of data points.

[![Travis](https://img.shields.io/travis/atlassubbed/atlas-mean-square.svg)](https://travis-ci.org/atlassubbed/atlas-mean-square)

---

## install

```
npm install --save atlas-mean-square
```

## why

Breaking up [atlas-dataset](https://github.com/atlassubbed/atlas-dataset#readme) into standalone functions. This module calculates the square of the quadratic mean of an array of numbers:


<V^2> = v_i*v_i/|V|

## examples

```javascript
const meanSquare = require("atlas-mean-square")
console.log(meanSquare([-2, 2]))
// 4
```