def rescale(arr, vmin, vmax):
    """ Rescale uniform values
    Rescale the sampled values between 0 and 1 towards the real boundaries
    of the parameter.

    Parameters
    -----------
    arr : array
        array of the sampled values
    vmin : float
        minimal value to rescale to
    vmax : float
        maximum value to rescale to
    """
    arrout = (vmax - vmin)*arr + vmin
    return arrout