def scaleValuesWithInfo(values):
    """Scale a numpy array of values so that (min, max) = (0,1).
    Returns:
    scaled values
    Scaleby
    Shiftby   -- i.e. to get back the original values, first multiply by Scaleby, then add Shiftby
    """

    Shiftby = values.min()
    values = values - Shiftby
    Scaleby = values.max()
    return values/Scaleby, Scaleby, Shiftby