Wondering what’s next for npm?Check out our public roadmap! »

    stats-mean

    1.0.0 • Public • Published

    Mean Build Status

    Calculate mean of data.

    Installation

    $ npm install stats-mean

    Usage

    var mean = require('stats-mean');
     
    var data = [1, 10, 100, 45, -4, 0.9, -16];
     
    mean.calc(data); // → 19.5

    API

    calc(data)

    data

    Type: array

    The data to be analysed; an array of numbers.

    License

    MIT © Michał Jezierski

    Install

    npm i stats-mean

    DownloadsWeekly Downloads

    11

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar