measure_dist

sitelle.utils.measure_dist(pos1, pos2)

Measure the distance (norm 2) between two positions, in units of the position. Can be used with vectors where each line is a [x,y] position.

Parameters:
  • pos1 (ndarray) – First position
  • pos2 (ndarray) – Second position
Returns:

dist – Distance (norm 2), same dimension as pos1

Return type:

ndarray