def min_max_norm(x):
    """ Performs min-max normalization --> scales values in range between 1 and 0
        :param x (1-D array like)
        :return: (1-D np.array) min-max normalized input
    """
    mini = min(x)
    maxi = max(x)
    return (x - mini) / (maxi - mini)