|
Player12
An open source football management simulator
|
Functions | |
| TeamAnalytics | buildTeamAnalytics (const DataHubInput &input) |
| std::vector< PlayerAnalyticsRow > | buildPlayerAnalytics (const DataHubInput &input) |
| bool | hasStatistics (const MatchReport &report) |
| float | leaderValue (const PlayerAnalyticsRow &row, LeaderMetric metric) |
| int | leaderMinutes (const PlayerAnalyticsRow &row, LeaderMetric metric) |
| std::vector< std::size_t > | leaders (std::span< const PlayerAnalyticsRow > rows, LeaderMetric metric) |
Variables | |
| constexpr int | MIN_MATCHES = 3 |
| constexpr std::size_t | ROLLING_WINDOW = 5 |
| constexpr std::size_t | RATING_HISTORY = 10 |
| constexpr std::size_t | LEADERS = 5 |
| constexpr int | LEADER_MIN_MINUTES = 90 |
| std::vector< PlayerAnalyticsRow > DataHub::buildPlayerAnalytics | ( | const DataHubInput & | input | ) |
Players with at least one appearance, most minutes first.
| TeamAnalytics DataHub::buildTeamAnalytics | ( | const DataHubInput & | input | ) |
| bool DataHub::hasStatistics | ( | const MatchReport & | report | ) |
True when a report carries engine statistics (not a bare score).
| int DataHub::leaderMinutes | ( | const PlayerAnalyticsRow & | row, |
| LeaderMetric | metric | ||
| ) |
Minutes behind a leaderboard metric (its per-90 base).
| std::vector< std::size_t > DataHub::leaders | ( | std::span< const PlayerAnalyticsRow > | rows, |
| LeaderMetric | metric | ||
| ) |
Indices into rows of the top players by season total, best first.
| float DataHub::leaderValue | ( | const PlayerAnalyticsRow & | row, |
| LeaderMetric | metric | ||
| ) |
Season total of a leaderboard metric.
|
inlineconstexpr |
Minutes before a player enters a leaderboard.
|
inlineconstexpr |
|
inlineconstexpr |
Matches needed before trends and comparisons are shown.
|
inlineconstexpr |
|
inlineconstexpr |