def calculateTimeError(localTime, referenceTime):
    """
    Calculate Time Error (TE) of two timebases assuming they are identically, uniformly sampled.
    
    Assume localTime and referenceTime are numpy arrays.
    
    "Definitions and terminology for synchronization networks", ITU-T G.810 (08/96), Section 4.5.13, pp7
    """
    assert localTime.size == referenceTime.size
    return localTime - referenceTime
