Calculates the weighted mean of an array of numbers.
$ npm install weighted-mean -
$ bower install weighted-mean -
The browser file is named
index.umd.js which supports CommonJS, AMD and globals (
If you want to run this module on old browsers, you must include es5-shim.
The example bellow is based on
const weightedMean = ;const mean =;
$ npm test
Released under the MIT License.