def min_max_denorm(data, min_, max_):
    """
    Denormalize the data using that was normalized using min-max normalization
    :param data: 1d array of power consumption
    :param min: the min of the power consumption
    :param max: the max of the power consumption
    :return: denormalized power consumption
    """
    return data * (max_ - min_) + min_