Transforms#

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.

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.