measures all distances in two point function for two-point function