def z_denorm(data, mean, std):
    """
    Denormalize the data using that was normalized using z-norm
    :param data: 1d array of power consumption
    :param mean: the mean of the power consumption
    :param std: the std of the power consumption
    :return: denormalized power consumption
    """
    return data * std + mean