Class ReactionTimeAnalysis
java.lang.Object
org.episteme.social.psychology.ReactionTimeAnalysis
Provides mathematical models for analyzing human reaction times and motor control.
Includes implementations of Hick's Law, Fitts's Law, and basic decision probability models.
Modernized to use Quantity and Real for high-precision physical and cognitive modeling.
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionModels movement time to a target using Fitts's Law.Models decision time based on the number of choices using Hick's Law.static RealindexOfDifficulty(Quantity<Length> d, Quantity<Length> w) Calculates the Index of Difficulty (ID) for a pointing task.lucisChoiceProbability(List<Real> utilities) Calculates choice probabilities using Luce's Choice Axiom.typicalSimpleRT(int age) Provides a rough estimate of Simple Reaction Time (SRT) based on age.
-
Method Details
-
hicksLaw
Models decision time based on the number of choices using Hick's Law. RT = a + b * log2(n + 1)- Parameters:
a- Base reaction timeb- Processing speed coefficientn- Number of equally probable choices- Returns:
- Estimated reaction time
-
fittsLaw
public static Quantity<Time> fittsLaw(Quantity<Time> a, Quantity<Time> b, Quantity<Length> d, Quantity<Length> w) Models movement time to a target using Fitts's Law. MT = a + b * log2(2D / W)- Parameters:
a- Intercept (Time)b- Slope (Time per bit)d- Distance to target centerw- Width of target (tolerance)- Returns:
- Estimated movement time
-
typicalSimpleRT
-
indexOfDifficulty
-
lucisChoiceProbability
-