Weighting.dist

Weighting.dist(self, x1, x2)[source]

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.