39 std::array<std::uint8_t, MatchTracking::CELLS>
cells{};
70 std::array<std::array<std::uint8_t, MatchTracking::BUCKETS>, 2>
final_third{};
75 [[nodiscard]] std::optional<std::size_t>
indexOf(
PlayerID player)
const;
78 [[nodiscard]] std::vector<std::uint8_t>
encode()
const;
80 static std::optional<MatchDetail>
decode(std::span<const std::uint8_t> data);
89 enum class Kind : std::uint8_t
Definition match_engine.h:517
MatchDetail captureDetail(const MatchEngine &engine)
Definition match_insights.cpp:262
std::array< int, 3 > finalThirdByFlank(const MatchDetail &detail, bool home)
Final-third touches of one side split by flank (attacking frame).
Definition match_insights.cpp:320
std::vector< KeyMoment > keyMoments(const InsightInput &input)
Definition match_insights.cpp:337
std::vector< AnalysisLine > summariseMatch(const InsightInput &input)
Definition match_insights.cpp:508
Definition match_insights.h:113
constexpr float CLEAR_XG_GAP
Definition match_insights.h:116
constexpr float FINISHING_GAP
Definition match_insights.h:118
constexpr int MIN_FLANK_TOUCHES
Definition match_insights.h:120
constexpr float BIG_CHANCE_XG
Definition match_insights.h:114
constexpr int MAX_SUMMARY_LINES
Definition match_insights.h:126
constexpr float LOW_SHOT_QUALITY
Definition match_insights.h:124
constexpr int MIN_SHOTS_FOR_QUALITY
Definition match_insights.h:125
constexpr float FLANK_SHARE
Definition match_insights.h:121
constexpr int MIN_SPELL_TOUCHES
Definition match_insights.h:122
Tracked numbers of one player in a match (attacking frame).
Definition match_insights.h:28
bool home
Definition match_insights.h:30
std::uint16_t touches
Definition match_insights.h:31
std::array< std::uint8_t, MatchTracking::CELLS > cells
Definition match_insights.h:39
std::uint16_t pressures
Definition match_insights.h:36
PlayerID player
Definition match_insights.h:29
float expected_assists
Definition match_insights.h:37
float avg_y
Definition match_insights.h:34
std::uint16_t progressive_passes
Definition match_insights.h:35
float avg_x
Definition match_insights.h:33
A substitution of the match.
Definition match_insights.h:52
PlayerID on
Definition match_insights.h:56
bool home
Definition match_insights.h:54
PlayerID off
Definition match_insights.h:55
std::uint8_t minute
Definition match_insights.h:53
One entry of the key-moments list.
Definition match_insights.h:88
std::uint8_t added
Definition match_insights.h:102
bool home
Definition match_insights.h:104
Kind
Definition match_insights.h:90
int shot
Definition match_insights.h:109
PlayerID player
Definition match_insights.h:105
Kind kind
Definition match_insights.h:100
PlayerID other
Definition match_insights.h:106
std::uint8_t minute
Definition match_insights.h:101
float xg
Definition match_insights.h:107
Per-match aggregates behind the match report's analysis: touch maps, the pass network,...
Definition match_insights.h:66
std::vector< std::uint8_t > encode() const
Definition match_insights.cpp:135
std::vector< PassLink > links
Definition match_insights.h:68
bool empty() const
Definition match_insights.h:73
std::array< std::array< std::uint8_t, MatchTracking::BUCKETS >, 2 > final_third
Definition match_insights.h:70
static std::optional< MatchDetail > decode(std::span< const std::uint8_t > data)
Definition match_insights.cpp:190
std::vector< DetailSubstitution > substitutions
Definition match_insights.h:71
std::vector< DetailPlayer > players
Definition match_insights.h:67
std::optional< std::size_t > indexOf(PlayerID player) const
Definition match_insights.cpp:128
Structured summary of a played fixture, persisted per fixture.
Definition match_report.h:93
Completed passes from one player to a team-mate.
Definition match_insights.h:44
std::uint8_t to
Definition match_insights.h:46
std::uint8_t from
Definition match_insights.h:45
std::uint16_t count
Definition match_insights.h:47
uint32_t PlayerID
Type alias for Player identifiers.
Definition types.h:21