Skip to contents

This function normalizes the eye-movements to a unit range based on the specified x and y bounds.

Usage

normalize(x, xbounds, ybounds, ...)

Arguments

x

The input object containing the eye-movements to be normalized.

xbounds

A vector containing the minimum and maximum x bounds for normalization.

ybounds

A vector containing the minimum and maximum y bounds for normalization.

...

Additional arguments to be passed to the normalization method.

Value

An object containing the normalized eye-movements in the unit range.

Examples

# Example usage of the normalize function
input_object <- # input object data containing eye-movements
x_bounds <- c(0, 1000) # X bounds for normalization
y_bounds <- c(0, 1000) # Y bounds for normalization
normalized_object <- normalize(input_object, xbounds = x_bounds, ybounds = y_bounds)
#> Error in UseMethod("normalize", x): no applicable method for 'normalize' applied to an object of class "c('double', 'numeric')"