Saccade detection
- saccades.m : from eye position data, detects all saccades up to a certain magnitude.
- Uses modified versions of vecvel.m and microsacc.m. Originally from http://www.agnld.uni-potsdam.de/~ralf/MS/
SWJ detection
- swjs.m : from the secuence of saccades identifies the saccade pairs that form SWJs.
- getswjparameters.m : using data from a population of PSP patients calculates the necessary parameters to calculate the swj index in swjs.m. This function requires also swjMLE.m , swjexgausspdf.m, swjexgausscdf.m and fit_mix_gaussian.m