normalize_length#

tangles.util.preprocessing.normalize_length(data: ndarray, axis: int) ndarray#

Normalize the euclidean length of the data along the specified axis.

Parameters#

data

the data to normalize.

axis

the axis along which to normalize.

Returns#

np.ndarray

normalized data.