ArrayWeighting.dist

ArrayWeighting.dist(self, x1, x2)

Calculate the distance between two elements.

This is the standard implementation using norm. Subclasses should override it for optimization purposes.

Parameters
x1, x2LinearSpaceElement

Elements whose mutual distance is calculated.

Returns
distfloat

The distance between the elements.