Get distance between two samples for dtw distance.
x1 (float) – first value
x2 (float) – second value
distance between x1 and x2
float