Weighted Euclidean Inner Product