def cur_value(self):
        """
            Returns current moving average, 0 if no records
        """
        if self.normalization == 0:
            return 0
        else:
            return self.cum_value / self.normalization

            Returns current moving average, 0 if no records
        
surreal/utils/common.py