Utils¶
Distanz¶
-
pygsp.utils.
distanz
(x, y=None)[source]¶ Calculate the distanz between two colon vectors
Parameters: x : ndarray
First colon vector
y : ndarray
Second colon vector
Returns: d : ndarray
Distance between x and y
Examples
>>> import numpy as np >>> from pygsp import utils >>> x = np.random.rand(16) >>> y = np.random.rand(16) >>> distanz = utils.distanz(x, y)