log index of closest data point