Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1023 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 1023 Bytes

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