floodlight-sports / floodlight

Python package for streamlined analysis of sports data.
https://floodlight.readthedocs.io/en/latest/index.html
MIT License
59 stars 14 forks source link

feat: VelocityVectorModel #131

Open manuba95 opened 1 year ago

manuba95 commented 1 year ago

This adds a kinematic model that calculates the Velocity as a vector. This can e.g. be used to get the orientation of the player, as required in different space control models. Right now, the origin of the velocity vector are the player's position.

codecov[bot] commented 1 year ago

Codecov Report

Merging #131 (96b2162) into develop (e1de087) will increase coverage by 0.36%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #131      +/-   ##
===========================================
+ Coverage    95.58%   95.94%   +0.36%     
===========================================
  Files           47       47              
  Lines         3194     3231      +37     
===========================================
+ Hits          3053     3100      +47     
+ Misses         141      131      -10     
Impacted Files Coverage Δ
floodlight/models/kinematics.py 97.53% <100.00%> (+15.99%) :arrow_up:
tests/test_models/test_kinematics.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more