ssciwr / vstt

Visuomotor Serial Targeting Task (VSTT)
https://vstt.readthedocs.io
MIT License
0 stars 0 forks source link

add peak velocity and peak acceleration #253

Closed ZoeJacky closed 12 months ago

ZoeJacky commented 1 year ago

mouse_positions:[[x0, y0], [x1, y1], ...] mouse_times:[t0, t1, ...]

velocity: [[Vx0,Vy0],[Vx1,Vy1], ...] Vx0 = (x1-x0)/(t1-t0) Vy0 = (y1-y0)/(t1-t0) .... acceleration: [[Ax0,Ay0],[Ax1,Ay1], ...] Ax0 = (Vx1-Vx0)/(t1-t0) Ay0 = (Vy1-Vy0)/(t1-t0) ....

peak velocity = max(velocity) peak acceleration = max(acceleration)

codecov[bot] commented 1 year ago

Codecov Report

Merging #253 (8f29c0c) into main (daacd30) will increase coverage by 0.18%. Report is 2 commits behind head on main. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #253      +/-   ##
==========================================
+ Coverage   89.82%   90.01%   +0.18%     
==========================================
  Files          19       19              
  Lines        1573     1602      +29     
==========================================
+ Hits         1413     1442      +29     
  Misses        160      160              
Files Coverage Δ
src/vstt/display.py 100.00% <ø> (ø)
src/vstt/stats.py 99.01% <100.00%> (+0.14%) :arrow_up:
src/vstt/vis.py 95.14% <100.00%> (ø)
src/vstt/vtypes.py 98.71% <100.00%> (+0.03%) :arrow_up:
sonarcloud[bot] commented 12 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

ZoeJacky commented 12 months ago

I will merge the code to the main branch, thank you, Liam!