Player12
An open source football management simulator
Loading...
Searching...
No Matches
WorldTuning::MatchContext Struct Referencefinal

#include <world_tuning.h>

Static Public Attributes

static constexpr float REFERENCE_GOALS_TOP = 2.89f
 
static constexpr float REFERENCE_GOALS_SECOND = 2.42f
 
static constexpr float REFERENCE_SPREAD_TOP = 7.0f
 
static constexpr float REFERENCE_SPREAD_SECOND = 3.7f
 
static constexpr float GOALS_PER_SPREAD_POINT = 0.017f
 
static constexpr float GOAL_RESPONSE_EXPONENT = 1.3f
 
static constexpr float REFERENCE_YELLOWS = 4.2f
 
static constexpr float REFERENCE_HOME_EDGE = 14.0f
 
static constexpr float REFERENCE_REFEREE_SPREAD = 0.4f
 
static constexpr float MIN_HOME_SCALE = 0.6f
 
static constexpr float MAX_HOME_SCALE = 1.4f
 

Member Data Documentation

◆ GOAL_RESPONSE_EXPONENT

constexpr float WorldTuning::MatchContext::GOAL_RESPONSE_EXPONENT = 1.3f
staticconstexpr

Goals grow about as goalRateScale^1.3 in the world (the scale acts on shot precision; the fit gives 1.35 in top and 1.24 in second divisions, 1.06 between two 65-rated lab sides), so the scale is the goal ratio to the power 1/1.3.

◆ GOALS_PER_SPREAD_POINT

constexpr float WorldTuning::MatchContext::GOALS_PER_SPREAD_POINT = 0.017f
staticconstexpr

◆ MAX_HOME_SCALE

constexpr float WorldTuning::MatchContext::MAX_HOME_SCALE = 1.4f
staticconstexpr

◆ MIN_HOME_SCALE

constexpr float WorldTuning::MatchContext::MIN_HOME_SCALE = 0.6f
staticconstexpr

The home advantage scale is the square root of the league's home edge over the reference (damped: the engine's home effect already grows at lower levels), within these bounds. [P]

◆ REFERENCE_GOALS_SECOND

constexpr float WorldTuning::MatchContext::REFERENCE_GOALS_SECOND = 2.42f
staticconstexpr

◆ REFERENCE_GOALS_TOP

constexpr float WorldTuning::MatchContext::REFERENCE_GOALS_TOP = 2.89f
staticconstexpr

Goals and yellow cards per match the engine produces at a neutral context inside the simulated world, where clubs of very different strength meet. The engine already scores less in second divisions (their lower finishing), so those have their own goal reference. [Fitted to fm_lab season: goals per league against the scale, 22 leagues]

◆ REFERENCE_HOME_EDGE

constexpr float WorldTuning::MatchContext::REFERENCE_HOME_EDGE = 14.0f
staticconstexpr

◆ REFERENCE_REFEREE_SPREAD

constexpr float WorldTuning::MatchContext::REFERENCE_REFEREE_SPREAD = 0.4f
staticconstexpr

SD of referees' mean yellows the engine's per-match spread stands for; top divisions sit below it, second tiers above. [S: England P10-P90 3.67-4.27 top flight, 3.07-4.42 Championship]

◆ REFERENCE_SPREAD_SECOND

constexpr float WorldTuning::MatchContext::REFERENCE_SPREAD_SECOND = 3.7f
staticconstexpr

◆ REFERENCE_SPREAD_TOP

constexpr float WorldTuning::MatchContext::REFERENCE_SPREAD_TOP = 7.0f
staticconstexpr

The references hold for a league of this quality spread (LeagueShape level_sd); a more unequal league has more mismatches and scores more at the same scale, about this share more per point of spread. [Fitted to fm_lab season: goals against target over the 11 top divisions, slope 0.017 +- 0.006 per point]

◆ REFERENCE_YELLOWS

constexpr float WorldTuning::MatchContext::REFERENCE_YELLOWS = 4.2f
staticconstexpr

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