uvex_transients.phase_space.space.Space.to_unit#

Space.to_unit(x: ArrayLike) → NDArray[float64][source]#

Rescale points from the ranges of the axes to the unit cube.

Parameters:

x (array-like) – Points in the coordinates of the axes, shape (..., ndim).

Returns:

The points in the unit cube, of the same shape.

Return type:

numpy.ndarray