title: Comparing a set of coordinates (strokes?) for a percentage difference
body: <p>I have 2 paths A and B.</p>
  
  <p>For example:</p>
  
  <pre><code>A = {(1,1), (2,2), (3,3)}
  B = {(2,2), (3,3), (5,5), (6,7)}
  </code></pre>
  
  <p>Each pair of elements is a line, starting at the element before it.
  The beginning element is the start of the stroke, and the ending element is the end of the stroke.</p>
  
  <p>I want to compare A and B for similarity, and in the end get a percentage accuracy.</p>
  
  <p>I have done some research already and found references to Hausdorff Distance and Frechet Distance but I cannot figure out how to get these to do what I want them to do.</p>
  
  <p>Thank you!</p>
  
  <p>(The language I am looking to code this in, is Java if any libraries exist for this problem, that would be greatly appreciated)</p>