Misc package

Various miscellaneous code required by ConKit

normalize(data, vmin=0, vmax=1)[source]

Apply a Feature scaling algorithm to normalize the data

This normalization will bring all values into the range [0, 1]. This function allows range restrictions by values vmin and vmax.

\[{X}'=\frac{(X-X_{min})(vmax-vmin)}{X_{max}-X_{min}}\]
Parameters:

data : list, tuple

The data to normalize

vmin : int, float, optional

The minimum value

vmax : int, float, optional

The maximum value

Returns:

list

The normalized data