def minmax_normalize(array):
    """Normalize array to lie between 0 and 1.

    Parameters
    ----------
    array : np.ndarray
        Array to be normalized

    Returns
    -------
    np.ndarray
        Normalized array
    """
    return (array - array.min()) / (array.max() - array.min())