|
3 | 3 | % The I2MC algorithm was designed to accomplish fixation detection in data |
4 | 4 | % across a wide range of noise levels and when periods of data loss may |
5 | 5 | % occur. |
6 | | - |
| 6 | +% |
7 | 7 | % Cite as: |
8 | 8 | % Hessels, R.S., Niehorster, D.C., Kemner, C., & Hooge, I.T.C., (2016). |
9 | 9 | % Noise-robust fixation detection in eye-movement data - Identification by |
10 | | -% 2-means clustering (I2MC). Submitted. |
11 | | - |
| 10 | +% 2-means clustering (I2MC). Behavior Research Methods. |
| 11 | +% |
12 | 12 | % For more information, questions, or to check whether we have updated to a |
13 | 13 | % better version, e-mail: [email protected] / [email protected]. I2MC is |
14 | 14 | % available from www.github.com/royhessels/I2MC |
15 | | - |
| 15 | +% |
16 | 16 | % Most parts of the I2MC algorithm are licensed under the Creative Commons |
17 | 17 | % Attribution 4.0 (CC BY 4.0) license. Some functions are under MIT |
18 | 18 | % license, and some may be under other licenses. |
19 | | - |
| 19 | +% |
20 | 20 | % Quick start guide for adopting this script for your own data: |
21 | 21 | % 1) Build an import function specific for your data (see importTobiiTX300 |
22 | 22 | % for an example). |
23 | | - |
| 23 | +% |
24 | 24 | % 2) Change line 106 to use your new import function. The format should be: |
25 | 25 | % |
26 | 26 | % data.time for the timestamp |
|
31 | 31 | % You may provide coordinates from both eyes, only the left, only the |
32 | 32 | % right, or only the average. |
33 | 33 | % Gaze coordinates should be in pixels, timestamps should be in milliseconds |
34 | | - |
| 34 | +% |
35 | 35 | % 3) Adjust the variables in the "necessary variables" section to match your |
36 | 36 | % data |
37 | 37 | % 4) Run the algorithm |
38 | | - |
39 | | -% Requirements: Signal Processing Toolbox for downsampling. If not |
40 | | -% available you may set opt.downsample to []. This may, however, degrade |
41 | | -% performance of the algorithm. |
42 | | - |
| 38 | +% |
| 39 | +% Note: Signal Processing Toolbox is required for the default downsampling |
| 40 | +% procedure. If not available, set opt.downsampFilter to 0. This will use a |
| 41 | +% different downsampling procedure. |
| 42 | +% |
43 | 43 | % Tested on MATLAB R2012a, R2014b & R2016a |
44 | 44 |
|
45 | 45 | %% INITIALIZE |
|
0 commit comments