Calculate statistics and distributions of a value across the playerbase
This is part of gw2efficiency. Please report all issues in the central repository.
npm install gw2e-playerbase-statistics
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}
npm test
MIT