mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2025-05-17 21:39:23 +02:00
Simu: distance sum over last axis
This commit is contained in:
parent
99cd7264f0
commit
a50f6640a4
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ def distance(x1, x2):
|
|||
"""
|
||||
Calculate the Euclidean distance between two locations x1 and x2
|
||||
"""
|
||||
return np.sqrt( np.sum( (x1 - x2)**2, axis=0) )
|
||||
return np.sqrt( np.sum( (x1 - x2)**2, axis=-1) )
|
||||
|
||||
def plot_geometry(ax, emitters=[], antennae=[], unit='m'):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue