Provided modular architecture for animated bouncing ball analysis

- Organized project into src directory with subpackages (analysis, data, visualization, utils)
- Added comprehensive README with project overview and structure
- Implemented data loading, bounce detection, and visualization modules
- Created example scripts and Jupyter notebook for project usage
- Added requirements.txt for dependency management
- Included output files for different ball types (golf, lacrosse, metal)
This commit is contained in:
2025-03-01 16:55:29 -07:00
parent 3cf0e16c35
commit c6b08a089d
75 changed files with 3198 additions and 2 deletions

6
output/golf_summary.csv Normal file
View File

@@ -0,0 +1,6 @@
peak_indices,bounce_heights,bounce_times,cor_values,Average COR,signal_data,Initial Height,Num Bounces,Ball Type,Path
[ 9104 11129 12858 14329 15579 17579 18364],[15.663 10.541 10.537 10.593 8.172 7.809 5.567],[1.821 2.226 2.572 2.866 3.116 3.516 3.673],[0.82035803 0.99981025 1.00265378 0.87832388 0.97753774 0.84433132],0.9205024998169424,[ 0. -0.015 -0.015 ... -0.011 -0.015 -0.015],11.0,7,Golf,src/data/golf/golf_11.csv
[ 8153 10235 12022 13560 14882 16008 17815],[11.556 12.342 11.634 9.555 7.728 5.693 3.243],[1.631 2.047 2.404 2.712 2.976 3.202 3.563],[1.03344889 0.97089387 0.90625584 0.8993282 0.85829589 0.75474958],0.9038287124950632,[0. 0. 0. ... 0.004 0.004 0. ],12.0,7,Golf,src/data/golf/golf_12.csv
[ 5831 7977 9825 11407 12765 13929 15765],[13.068 11.686 11.664 7.909 9.21 7.387 4.229],[1.166 1.595 1.965 2.281 2.553 2.786 3.153],[0.94564554 0.99905826 0.82344962 1.07911823 0.89557969 0.75663215],0.9165805802090672,[0. 0.004 0. ... 0.007 0.004 0.007],13.0,7,Golf,src/data/golf/golf_13.csv
[12333 14657 16642 18342 19801 21043 22093],[14.836 10.337 8.28 7.427 5.915 5.485 4.285],[2.467 2.931 3.328 3.668 3.96 4.209 4.419],[0.83471621 0.89498944 0.94709064 0.89242281 0.96296597 0.88386736],0.9026754047920241,[ 0. -0.007 -0.007 ... -0.011 -0.015 -0.004],14.0,7,Golf,src/data/golf/golf_14.csv
[ 9115 11353 13269 14917 16327 17531 18562],[13.031 10.982 9.607 8.128 6.827 6.712 5.13 ],[1.823 2.271 2.654 2.983 3.265 3.506 3.712],[0.91801938 0.93530483 0.91980963 0.91648024 0.99154179 0.8742441 ],0.925899992441524,[ 0. -0.004 -0.007 ... -0.007 -0.004 -0.007],15.0,7,Golf,src/data/golf/golf_15.csv
1 peak_indices bounce_heights bounce_times cor_values Average COR signal_data Initial Height Num Bounces Ball Type Path
2 [ 9104 11129 12858 14329 15579 17579 18364] [15.663 10.541 10.537 10.593 8.172 7.809 5.567] [1.821 2.226 2.572 2.866 3.116 3.516 3.673] [0.82035803 0.99981025 1.00265378 0.87832388 0.97753774 0.84433132] 0.9205024998169424 [ 0. -0.015 -0.015 ... -0.011 -0.015 -0.015] 11.0 7 Golf src/data/golf/golf_11.csv
3 [ 8153 10235 12022 13560 14882 16008 17815] [11.556 12.342 11.634 9.555 7.728 5.693 3.243] [1.631 2.047 2.404 2.712 2.976 3.202 3.563] [1.03344889 0.97089387 0.90625584 0.8993282 0.85829589 0.75474958] 0.9038287124950632 [0. 0. 0. ... 0.004 0.004 0. ] 12.0 7 Golf src/data/golf/golf_12.csv
4 [ 5831 7977 9825 11407 12765 13929 15765] [13.068 11.686 11.664 7.909 9.21 7.387 4.229] [1.166 1.595 1.965 2.281 2.553 2.786 3.153] [0.94564554 0.99905826 0.82344962 1.07911823 0.89557969 0.75663215] 0.9165805802090672 [0. 0.004 0. ... 0.007 0.004 0.007] 13.0 7 Golf src/data/golf/golf_13.csv
5 [12333 14657 16642 18342 19801 21043 22093] [14.836 10.337 8.28 7.427 5.915 5.485 4.285] [2.467 2.931 3.328 3.668 3.96 4.209 4.419] [0.83471621 0.89498944 0.94709064 0.89242281 0.96296597 0.88386736] 0.9026754047920241 [ 0. -0.007 -0.007 ... -0.011 -0.015 -0.004] 14.0 7 Golf src/data/golf/golf_14.csv
6 [ 9115 11353 13269 14917 16327 17531 18562] [13.031 10.982 9.607 8.128 6.827 6.712 5.13 ] [1.823 2.271 2.654 2.983 3.265 3.506 3.712] [0.91801938 0.93530483 0.91980963 0.91648024 0.99154179 0.8742441 ] 0.925899992441524 [ 0. -0.004 -0.007 ... -0.007 -0.004 -0.007] 15.0 7 Golf src/data/golf/golf_15.csv