edu.harvard.seas.iis.abilities.analysis
Class MovementUtils

java.lang.Object
  extended by edu.harvard.seas.iis.abilities.analysis.MovementUtils

public class MovementUtils
extends java.lang.Object

Author:
kgajos Various tools for manipulating Movement objects

Constructor Summary
MovementUtils()
           
 
Method Summary
static double[] computeFittsCoefficients(java.util.Collection<Movement> movements)
           
static double[] getMeanAndStdevForProperty(java.util.Collection<Movement> movements, java.lang.String propertyName)
          Computes a mean and stdev for a given property over a collection of movements
static double[] getPropertyAsArray(java.util.Collection<Movement> movements, java.lang.String propertyName)
          for a collection of movements, extracts a particular (numerical) property from each, and returns an array of the values
static double getRMSdeviationFromFitts(java.util.Collection<Movement> movements, double a, double b)
          Computes root mean square difference between the actual movement time and the movement time predicted by the Fitts' model with parameters a and b.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovementUtils

public MovementUtils()
Method Detail

computeFittsCoefficients

public static double[] computeFittsCoefficients(java.util.Collection<Movement> movements)
Parameters:
movements -
Returns:
[intercept, slope]

getPropertyAsArray

public static double[] getPropertyAsArray(java.util.Collection<Movement> movements,
                                          java.lang.String propertyName)
for a collection of movements, extracts a particular (numerical) property from each, and returns an array of the values

Parameters:
movements -
propertyName -
Returns:

getMeanAndStdevForProperty

public static double[] getMeanAndStdevForProperty(java.util.Collection<Movement> movements,
                                                  java.lang.String propertyName)
Computes a mean and stdev for a given property over a collection of movements

Parameters:
movements -
propertyName -
Returns:

getRMSdeviationFromFitts

public static double getRMSdeviationFromFitts(java.util.Collection<Movement> movements,
                                              double a,
                                              double b)
Computes root mean square difference between the actual movement time and the movement time predicted by the Fitts' model with parameters a and b.

Parameters:
movements -
a -
b -
Returns: