stk.normalize_vector

stk.normalize_vector(vector)[source]

Normalizes the given vector.

A new vector is returned, the original vector is not modified.

Parameters:

vector (np.ndarray) – The vector to be normalized.

Returns:

The normalized vector.

Return type:

np.ndarray