title: Similarity distance measures
body: <p>Vectors like this </p>
  
  <pre><code>v1 = {0 0 0 1 1 0 0 1 0 1 1}
  v2 = {0 1 1 1 1 1 0 1 0 1 0}
  v3 = {0 0 0 0 0 0 0 0 0 0 1}
  </code></pre>
  
  <p>Need to calculate similarity between them. Hamming distance between <code>v1</code> and <code>v2</code> is 4 and between <code>v1</code> and <code>v3</code> is also 4. But because I am interested in the groups of '1' which are together for me <code>v2</code> is far more similar to <code>v1</code> then <code>v3</code> is.</p>
  
  <p>Is there any distance metrics that can capture this in the data?</p>
  
  <p>The data represent occupancy of house in time, that's why it is important to me. '1' means occupied, '0' means non occupied.</p>