title: Euclidean distance with weights
body: <p>I am currently using <code>SciPy</code> to calculate the euclidean distance</p>
  
  <pre><code>dis = scipy.spatial.distance.euclidean(A,B)
  </code></pre>
  
  <p>where; A, B are 5-dimension bit vectors. It works fine now, but if I add weights for each dimension then, is it still possible to use scipy?</p>
  
  <p>What I have now: <code>sqrt((a1-b1)^2 + (a2-b2)^2 +...+ (a5-b5)^2)</code>  </p>
  
  <p>What I want: <code>sqrt(w1(a1-b1)^2 + w2(a2-b2)^2 +...+ w5(a5-b5)^2)</code> using scipy or numpy or any other efficient way to do this.</p>
  
  <p>Thanks</p>