Given a neighborhood of data and two samples from that neighborhood, calculates the distance between the samples.
Useful links