floodlight.models
Collection of data models grouped by category. Each submodule contains model classes that provide data analysis methods based on core objects. Inspired by the scikitlearn API, each model class contains a .fit(...)
method that ‘fits’ the model to the data.
All Available Models
Computations for Euclidean distances of all players. 

Computations for velocities of all players. 

Computations for velocities of all players. 

Computations based on the geometric center of all players, commonly referred to as a team's centroid. 

Class for calculating Metabolic Power and derived metrics from spatiotemporal data. 

Calculates discretized versions of the Voronoi tessellation commonly used to assess space control. 
For quick reference, the following computations are available after calling the respective model’s .fit(...)
method
Geometry
Returns the team centroid positions as computed by the fit method. 

Calculates the Euclidean distance of each player to the fitted centroids. 

Calculates the Stretch Index, i.e., the mean distance of all players to the team centroid. 
Kinematics
Returns the framewise distance covered as computed by the fit method. 

Returns the cumulative distance covered. 

Returns the framewise velocity as computed by the fit method. 

Returns the framewise acceleration as computed by the fit method. 
Kinetics
Returns the framewise metabolic power as computed by the 

Returns the cumulative metabolic power. 

Returns framewise equivalent distance, defined as the distance a player could have run if moving at a constant speed and calculated as the fraction of metabolic work and the cost of constant running. 

Returns cumulative equivalent distance defined as the distance a player could have run if moving at a constant speed and calculated as the fraction of metabolic work and the cost of constant running. 
Space
Returns the percentage of mesh points controlled by each player of the first and second team. 

Returns the percentage of mesh points controlled by the first and second team. 

Plots the fitted mesh grid colored by team controls for a given time point on a matplotlib axes. 

Plots the generated mesh on a matplotlib.axes. 