def local_error(self, originalValue, calculatedValue):
        """Calculates the error between the two given values.

        :param list originalValue:    List containing the values of the original data.
        :param list calculatedValue:    List containing the values of the calculated TimeSeries that
            corresponds to originalValue.

        :return:    Returns the error measure of the two given values.
        :rtype:     numeric
        """
        originalValue = originalValue[0]
        calculatedValue = calculatedValue[0]

        # error is zero
        if not originalValue and not calculatedValue:
            return 0.0

        return abs(calculatedValue - originalValue)/ ((abs(originalValue) + abs(calculatedValue))/2) * 100
def local_error ( self , originalValue , calculatedValue ) : originalValue = originalValue [ 0 ] calculatedValue = calculatedValue [ 0 ] if not originalValue and not calculatedValue : return 0.0 return abs ( calculatedValue - originalValue ) / ( ( abs ( originalValue ) + abs ( calculatedValue ) ) / 2 ) * 100
Calculates the error between the two given values.

        :param list originalValue:    List containing the values of the original data.
        :param list calculatedValue:    List containing the values of the calculated TimeSeries that
            corresponds to originalValue.

        :return:    Returns the error measure of the two given values.
        :rtype:     numeric