dynsight.utilities.normalize_array

dynsight.utilities.normalize_array(x)[source]

Normalizes the further axis of the given array.

(e.g., in an array of shape (100, 50, 3), normalizes all the 5000 3D vectors.)

Parameters:

x (ndarray[Any, dtype[float64]]) – The array to be normalized.

Returns:

The normalized array.

Return type:

ndarray[Any, dtype[float64]]