pymovements.events.idt.dispersion

pymovements.events.idt.dispersion(positions: list[list[float]] | np.ndarray) float[source]

Compute the dispersion of a group of consecutive points in a 2D position time series.

The dispersion is defined as the sum of the differences between the points’ maximum and minimum x and y values

Parameters:

positions (array-like) – Continuous 2D position time series.

Returns:

dispersion – Dispersion of the group of points.

Return type:

float