hoi.utils.normalize

Contents

hoi.utils.normalize#

hoi.utils.normalize(x, to_min=0.0, to_max=1.0)[source]#

Normalize the array x between to_min and to_max.

Parameters:
xarray_like

The array to normalize

to_minint/float | 0.

Minimum of returned array

to_maxint/float | 1.

Maximum of returned array

Returns:
xnarray_like

The normalized array