gw2e-playerbase-statistics

Calculate statistics and distributions of a value across the playerbase


Keywords
maintained, npm-package
License
MIT
Install
npm install gw2e-playerbase-statistics@1.1.1

Documentation

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