private static string WriteTrajectoryLine(SequenceStatistic stat, FittsTrial sel, int trial) { return(stat.sequence.parameter.amplitude * 2 + delimiter + stat.sequence.parameter.width + delimiter + trial + delimiter + sel.coord.from.x + delimiter + sel.coord.from.y + delimiter + sel.coord.to.x + delimiter + sel.coord.to.y); }
public TrialStatistic(FittsTrial _trial) { trial = _trial; // dx double a = Vector2.Distance(trial.coord.from, trial.coord.to); double b = Vector2.Distance(trial.coord.to, trial.coord.select); double c = Vector2.Distance(trial.coord.from, trial.coord.select); dx = (c * c - b * b - a * a) / (2.0 * a); // Ae effectiveAmplitude = a + dx; // Movement variability, movement error and movement offset movement = new FittsMovement(trial.coord, trial.trajectory); }