Player12
An open source football management simulator
Loading...
Searching...
No Matches
TeamAnalytics Struct Reference

Team analytics of the data hub. More...

#include <data_hub.h>

Public Member Functions

bool hasEnoughMatches () const
 

Public Attributes

std::vector< TeamTrendPoint > trend
 
std::vector< float > rolling_xg_for
 
std::vector< float > rolling_xg_against
 
std::array< MetricComparison, HUB_METRIC_COUNT > metrics {}
 
int league_matches = 0
 
int team_league_matches = 0
 
SetPieceSummary set_pieces
 
std::vector< ShotRecord > shots_for
 
std::vector< ShotRecord > shots_against
 
int tracked_matches = 0
 
std::vector< float > cumulative_finishing
 
std::vector< float > cumulative_prevention
 
float league_conversion = 0.0f
 

Detailed Description

Team analytics of the data hub.

Member Function Documentation

◆ hasEnoughMatches()

bool TeamAnalytics::hasEnoughMatches ( ) const

Member Data Documentation

◆ cumulative_finishing

std::vector<float> TeamAnalytics::cumulative_finishing

Per trend point, running totals: goals minus xG (finishing) and xG against minus goals conceded (defence and goalkeeping).

◆ cumulative_prevention

std::vector<float> TeamAnalytics::cumulative_prevention

◆ league_conversion

float TeamAnalytics::league_conversion = 0.0f

League goals per shot on target behind GoalsPrevented.

◆ league_matches

int TeamAnalytics::league_matches = 0

League fixtures behind the league averages.

◆ metrics

std::array<MetricComparison, HUB_METRIC_COUNT> TeamAnalytics::metrics {}

◆ rolling_xg_against

std::vector<float> TeamAnalytics::rolling_xg_against

◆ rolling_xg_for

std::vector<float> TeamAnalytics::rolling_xg_for

Rolling mean over DataHub::ROLLING_WINDOW matches, per trend point.

◆ set_pieces

SetPieceSummary TeamAnalytics::set_pieces

◆ shots_against

std::vector<ShotRecord> TeamAnalytics::shots_against

◆ shots_for

std::vector<ShotRecord> TeamAnalytics::shots_for

Shots of tracked matches (attacking frames).

◆ team_league_matches

int TeamAnalytics::team_league_matches = 0

The club's own league matches behind its values in metrics.

◆ tracked_matches

int TeamAnalytics::tracked_matches = 0

◆ trend

std::vector<TeamTrendPoint> TeamAnalytics::trend

Played matches with engine statistics, oldest first.


The documentation for this struct was generated from the following files: