gw2e-playerbase-statistics

1.1.4 • Public • Published

playerbase-statistics

Build Status Coverage Status

Calculate statistics and distributions of a value across the playerbase

This is part of gw2efficiency. Please report all issues in the central repository.

Install

npm install gw2e-playerbase-statistics

Usage

import playerbaseStatistics from 'gw2e-playerbase-statistics'

// An array of values with their playtime attached
let playerbase = [
  {value: 13, playtime: 5000},
  {value: 123, playtime: 123123}
]

playerbaseStatistics(playerbase)
// -> {leaderboard, statistics, graphData}

Tests

npm test

Licence

MIT

/gw2e-playerbase-statistics/

    Package Sidebar

    Install

    npm i gw2e-playerbase-statistics

    Weekly Downloads

    2

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    29.8 kB

    Total Files

    16

    Last publish

    Collaborators

    • queicherius