Return the Euclidean distance between two points p and q.
tfm.optimization.math.dist(
p, q, /
)
The points should be specified as sequences (or iterables) of coordinates. Both inputs must have the same dimension.
Roughly equivalent to | |
---|---|
sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q))) |