Transforms#

Transformations

center_origin

Center pixel data.

clip

Clip gaze signal to a lower and upper bound.

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.

resample

Resample a DataFrame to a new sampling rate by timestamps in time column.

savitzky_golay

Apply a 1-D Savitzky-Golay filter to a column [Savitzky et al., 1964].

smooth

Smooth data in a column.

Segmentation Methods

events2segmentation

Convert a list of events to a binary segmentation expression.

events2timeratio

Create an expression to calculate time-based event ratio.

segmentation2events

Convert a binary segmentation map to a list of events.

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.