#NEWLINE# def local_error( self , originalValue , calculatedValue ) : #NEWLINE# #INDENT# 'Calculates the error between the two given values.\n\n        :param list originalValue:    List containing the values of the original data.\n        :param list calculatedValue:    List containing the values of the calculated TimeSeries that\n            corresponds to originalValue.\n\n        :return:    Returns the error measure of the two given values.\n        :rtype:     numeric\n        ' #NEWLINE# originalValue = self [ 0 ] #NEWLINE# calculatedValue = calculatedValue [ 0 ] #NEWLINE# if ( 0 == originalValue ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return ( math . fabs ( ( ( calculatedValue - originalValue ) / float ( originalValue ) ) ) * 100.0 )