Weighted p-norm between two datasets (pure Python implementation)
||x - x’||_w = (sum_{i=1...N} (w_i*|x_i - x’_i|)**p)**(1/p)
Parameters: | data1 : np.ndarray
data2 : np.ndarray or None
weight : np.ndarray or None
p :
heuristic : str
use_sq_euclidean : bool
|
---|