agregator.py
def __temperature(self, start, stop, delta_time):
        """
        This method compute a forecast for the temperature. It takes the real temperature and apply a variation to
        simulate a forecast with differences

        :param start: Starting time
        :type time

        :param stop: Stopping time
        :type time

        :param delta_time: Slot period time
        :type time

        :param common_unit: Unity for temperature
        :type time

        :return: A dictionary of forecasted temperature
        :rtype dictionary

        """

        if self.outside_process is not None:
            self.temperature_outside_forecast = {}

            # Day variance
            corr = random.normalvariate(0, self.day_sigma)

            for k in range(int(start), int(start+stop), int(delta_time)):
                self.outside_process.set_time(k * units.second)

                # Apply a variance with a normal distribution add to the real temperature
                corr += random.normalvariate(0, self.period_sigma)

                self.temperature_outside_forecast[k] = \
                    units.value(units.convert(getattr(self.outside_process, "temperature"), units.celsius)) + corr

            return self.temperature_outside_forecast
        else:
            return self.outside_temperature

        This method compute a forecast for the temperature. It takes the real temperature and apply a variation to
        simulate a forecast with differences

        :param start: Starting time
        :type time

        :param stop: Stopping time
        :type time

        :param delta_time: Slot period time
        :type time

        :param common_unit: Unity for temperature
        :type time

        :return: A dictionary of forecasted temperature
        :rtype dictionary

        
This method compute a forecast for the temperature. It takes the real temperature and apply a variation to
simulate a forecast with differences

:param start: Starting time
:type time

:param stop: Stopping time
:type time

:param delta_time: Slot period time
:type time

:param common_unit: Unity for temperature
:type time

:return: A dictionary of forecasted temperature
:rtype dictionary
This method compute a forecast for the temperature . It takes the real temperature and apply a variation to simulate a forecast with differences : param start : Starting time : type time : param stop : Stopping time : type time : param delta_time : Slot period time : type time : param common_unit : Unity for temperature : type time : return : A dictionary of forecasted temperature : rtype dictionary
def __temperature(self, start, stop, delta_time):
        if self.outside_process is not None:
            self.temperature_outside_forecast = {}
            corr = random.normalvariate(0, self.day_sigma)
            for k in range(int(start), int(start+stop), int(delta_time)):
                self.outside_process.set_time(k * units.second)
                corr += random.normalvariate(0, self.period_sigma)
                self.temperature_outside_forecast[k] = \
                    units.value(units.convert(getattr(self.outside_process, "temperature"), units.celsius)) + corr
            return self.temperature_outside_forecast
        else:
            return self.outside_temperature
def __temperature ( self , start , stop , delta_time ) : if self . outside_process is not None : self . temperature_outside_forecast = { } corr = random . normalvariate ( 0 , self . day_sigma ) for k in range ( int ( start ) , int ( start + stop ) , int ( delta_time ) ) : self . outside_process . set_time ( k * units . second ) corr += random . normalvariate ( 0 , self . period_sigma ) self . temperature_outside_forecast [ k ] = units . value ( units . convert ( getattr ( self . outside_process , "temperature" ) , units . celsius ) ) + corr return self . temperature_outside_forecast else : return self . outside_temperature
This method compute a forecast for the temperature.
This method compute a forecast for the temperature .
"""
        This method compute a forecast for the temperature. It takes the real temperature and apply a variation to
        simulate a forecast with differences

        :param start: Starting time
        :type time

        :param stop: Stopping time
        :type time

        :param delta_time: Slot period time
        :type time

        :param common_unit: Unity for temperature
        :type time

        :return: A dictionary of forecasted temperature
        :rtype dictionary

        """ # Day variance # Apply a variance with a normal distribution add to the real temperature
self
start
stop
delta_time