Class ReactionTimeAnalysis

java.lang.Object
org.episteme.social.psychology.ReactionTimeAnalysis

public final class ReactionTimeAnalysis extends Object
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 Details

    • hicksLaw

      public static Quantity<Time> hicksLaw(Quantity<Time> a, Quantity<Time> b, int n)
      Models decision time based on the number of choices using Hick's Law. RT = a + b * log2(n + 1)
      Parameters:
      a - Base reaction time
      b - Processing speed coefficient
      n - 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 center
      w - Width of target (tolerance)
      Returns:
      Estimated movement time
    • typicalSimpleRT

      public static Quantity<Time> typicalSimpleRT(int age)
      Provides a rough estimate of Simple Reaction Time (SRT) based on age.
      Parameters:
      age - Age in years (Quantity
      Returns:
      Estimated SRT
    • indexOfDifficulty

      public static Real indexOfDifficulty(Quantity<Length> d, Quantity<Length> w)
      Calculates the Index of Difficulty (ID) for a pointing task. ID = log2(2D / W)
      Parameters:
      d - Distance to target
      w - Width of target
      Returns:
      Index of Difficulty (dimensionless Real)
    • lucisChoiceProbability

      public static List<Real> lucisChoiceProbability(List<Real> utilities)
      Calculates choice probabilities using Luce's Choice Axiom.
      Parameters:
      utilities - List of utility values
      Returns:
      List of probabilities