trialdev function

Calculates trial deviation for simulated trials (drops).