Weighted p-norm between two datasets (scipy.weave implementation)
||x - x’||_w = (sum_{i=1...N} (w_i*|x_i - x’_i|)**p)**(1/p)
data1 : np.ndarray
First dataset
data2 : np.ndarray or None
Optional second dataset
weight : np.ndarray or None
Optional weights per 2nd dimension (features)
p :
Power
Enter search terms or a module, class or function name.