Gaze#

Gaze class is a self-contained data structure that contains eye tracking data represented as samples or events. It also includes metadata on the experiment and recording setup.

Classes

Gaze

Self-contained data structure containing gaze represented as samples or events.

GazeDataFrame

Self-contained data structure containing gaze represented as samples or events.

Transformations

center_origin

Center pixel data.

downsample

Downsample gaze data by an integer factor.

norm

Take the norm of a 2D series.

pix2deg

Convert pixel screen coordinates to degrees of visual angle.

deg2pix

Convert degrees of visual angle to pixel screen coordinates.

pos2acc

Compute acceleration data from positional data.

pos2vel

Compute velocitiy data from positional data.

savitzky_golay

Apply a 1-D Savitzky-Golay filter to a column|_|:cite:p:SavitzkyGolay1964.

Input / Output

from_asc

Initialize a Gaze.

from_csv

Initialize a Gaze.

from_ipc

Initialize a Gaze.

Integration

from_numpy

Get a Gaze from a numpy array.

from_pandas

Get a Gaze from a pandas DataFrame.

Numpy Transformations

pix2deg

Convert pixel screen coordinates to degrees of visual angle.

pos2acc

Compute velocity time series from 2-dimensional position time series.

pos2vel

Compute velocity time series from 2-dimensional position time series.

norm

Take the norm of an array.

split

Split sequence into subsequences of equal length.

downsample

Downsamples array by integer factor.

consecutive

Split array into groups of consecutive numbers.