med-material / TunnelGoalFittsTests

Unity Sources for Goal Crossing, Steering Task and Fitts Law to benchmark physical abilities (fx head movement)
MIT License
1 stars 1 forks source link

Index of Difficulty: Calculate using target height for Goal and Tunnel modes #31

Open bastianilso opened 4 years ago

bastianilso commented 4 years ago

In the R Shiny application we can calculate Index of Difficulty using this formula: image

However, this works only for the Fitts Law test. For the Goal test, we should replace W (target width) with H (target height). This is column does not exist yet for each test result, so will need to be logged into the DB.

bastianilso commented 4 years ago

@hendrikknoche what was the formula for calculating the ID for the tunnel test?

Adel-Akbi commented 4 years ago

Ok, when I changed the formula on the code, I've got negative values, is that possible? @hendrikknoche

formula

hendrikknoche commented 4 years ago

yes, that is the correct equation for the ID. negative values are possible for 'incorrect' input. It's not possible to have distances that are equal to or smaller than half the width (in those case you would not have to move anywhere since you're already inside the target). when D<=1/2W the logarithm returns 0 or smaller.