<commit_before># weighted-mean

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]

[npm-url]:https://npmjs.org/package/weighted-mean
[downloads-image]:http://img.shields.io/npm/dm/weighted-mean.svg
[npm-image]:http://img.shields.io/npm/v/weighted-mean.svg
[travis-url]:https://travis-ci.org/IndigoUnited/js-weighted-mean
[travis-image]:http://img.shields.io/travis/IndigoUnited/js-weighted-mean/master.svg
[coveralls-url]:https://coveralls.io/r/IndigoUnited/js-weighted-mean
[coveralls-image]:https://img.shields.io/coveralls/IndigoUnited/js-weighted-mean/master.svg
[david-dm-url]:https://david-dm.org/IndigoUnited/js-weighted-mean
[david-dm-image]:https://img.shields.io/david/IndigoUnited/js-weighted-mean.svg
[david-dm-dev-url]:https://david-dm.org/IndigoUnited/js-weighted-mean#info=devDependencies
[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/js-weighted-mean.svg

Calculates the weighted mean of an array of numbers.


## Installation

`$ npm install weighted-mean` - `NPM`   
`$ bower install weighted-mean` - `bower`

The browser file is named `index.umd.js` which supports CommonJS, AMD and globals (`weightedMean`).
If you want to run this module on old browsers, you must include [es5-shim](https://github.com/es-shims/es5-shim).


## Usage

The example bellow is based on `nodejs`.

```js
const weightedMean = require('weighted-mean');<commit_msg>Fix david link to dev deps<commit_after># weighted-mean

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]

[npm-url]:https://npmjs.org/package/weighted-mean
[downloads-image]:http://img.shields.io/npm/dm/weighted-mean.svg
[npm-image]:http://img.shields.io/npm/v/weighted-mean.svg
[travis-url]:https://travis-ci.org/IndigoUnited/js-weighted-mean
[travis-image]:http://img.shields.io/travis/IndigoUnited/js-weighted-mean/master.svg
[coveralls-url]:https://coveralls.io/r/IndigoUnited/js-weighted-mean
[coveralls-image]:https://img.shields.io/coveralls/IndigoUnited/js-weighted-mean/master.svg
[david-dm-url]:https://david-dm.org/IndigoUnited/js-weighted-mean
[david-dm-image]:https://img.shields.io/david/IndigoUnited/js-weighted-mean.svg
[david-dm-dev-url]:https://david-dm.org/IndigoUnited/js-weighted-mean?type=dev
[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/js-weighted-mean.svg

Calculates the weighted mean of an array of numbers.


## Installation

`$ npm install weighted-mean` - `NPM`   
`$ bower install weighted-mean` - `bower`

The browser file is named `index.umd.js` which supports CommonJS, AMD and globals (`weightedMean`).
If you want to run this module on old browsers, you must include [es5-shim](https://github.com/es-shims/es5-shim).


## Usage

The example bellow is based on `nodejs`.

```js
const weightedMean = require('weighted-mean');
{'fraction_non_alphanumeric': 0.18209781605659797, 'fraction_numerical': 0.0012303906490310674, 'mean_word_length': 5.277992277992278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4165388', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1182, 'n_words': 168}