Description Usage Arguments Examples
Computes instantaneous gaze velocity using a Savitzky-Golay filter.
1 2 3 | gaze_velocity(x, y, ez, ex = 0, ey = 0, timestamp = -1, blinks = NULL,
samplerate, screen.resolution, screen.dimensions, minsac = 0.02,
vt = 1000, at = 1e+05)
|
x |
the horizontal coordinate of a point on a screen (pixels) |
y |
the vertical coordinate of a point on a screen (pixels) |
ez |
the perpendicular distance from the viewer to the screen (mm) |
ex |
the horizontal offset of the viewer from screen center (mm) |
ey |
the vertical offset of the viewer from screen center (mm) |
timestamp |
vector of class |
blinks |
a vector of class |
samplerate |
the number of samples taken in one second of time |
screen.resolution |
vector of class |
screen.dimensions |
vector of class |
minsac |
the minimum saccade duration in seconds |
vt |
the max peak velocity allowed for good data |
at |
the max peak acceleration allowed for good data |
1 2 3 4 5 6 7 8 9 10 | data(smi)
d <- with(smi, gaze_velocity(smi_sxl, smi_syl,
smi_ezl, smi_exl, smi_eyl,
timestamp=smi_time, blinks=(smi_dyl==0),
500, 1680, 1050, 473.76, 296.1)
d
d <- with(highspeed, gaze_velocity(x,y,1250,1024,768,.38,.30,.67,
blinks=(x==0|y==0)))
d
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.