Class TacticalAnalyzer
java.lang.Object
org.episteme.social.sports.TacticalAnalyzer
Provides tactical analysis of team formations, player heatmaps, and passing networks.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordStructured arrangement of player base positions.static final recordRecord of a ball transfer between players.static final recordTemporal trajectory of a player.static final recordGeometric coordinate on a sports field. -
Method Summary
Modifier and TypeMethodDescriptionbuildPassingNetwork(List<TacticalAnalyzer.Pass> passes) Constructs a passing network graph showing successful links between players.static RealcalculateCompactness(Map<String, TacticalAnalyzer.Position> playerPositions) Calculates the average distance between all players (compactness).static double[][]generateHeatmap(List<TacticalAnalyzer.Position> positions, int gridWidth, int gridHeight, double fieldWidth, double fieldHeight) Generates a 2D intensity heatmap based on player occupancy.
-
Method Details
-
generateHeatmap
public static double[][] generateHeatmap(List<TacticalAnalyzer.Position> positions, int gridWidth, int gridHeight, double fieldWidth, double fieldHeight) Generates a 2D intensity heatmap based on player occupancy. -
buildPassingNetwork
-
calculateCompactness
Calculates the average distance between all players (compactness).
-