Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your question might also be related to <a href="https://stackoverflow.com/q/10947366/1622937">this one</a></p> <p>This is kind of a hard problem. A possible way would be to implement the euclidian distance on your own, completely abandon <code>scipy</code> and make use of <a href="http://pypy.org/" rel="nofollow noreferrer">pypy</a>'s JIT compiler. But most likely this will not make you gane much. </p> <p><em>Personally, I would recommend you to write the routine in C.</em></p> <p>The problem is less the implementation but the way you approach this problem. You chose a brute force approach by calculating the euclidian distance for each distinct pair of points in each possible pair of the metric space subsets. This is computationally demanding:</p> <ul> <li>Assume you have 500 curves and each of them has 75 points. With the brute force approach you end up calculating the euclidean distance 500 * 499 * 75 * 75 = 1 403 437 500 times. It is not further surprising that this approach takes forever to run. </li> </ul> <p>I'm not an expert with this but I know that the Hausdorff distance is extensively used in image processing. I would suggest you to browse the literature for speed optimized algorithms. A starting point might be <a href="https://docs.google.com/viewer?url=http%3A%2F%2Fwww.vldb.org%2Fpvldb%2Fvol4%2Fp506-nutanong.pdf" rel="nofollow noreferrer">this</a>, or <a href="https://docs.google.com/viewer?url=http%3A%2F%2Fwww.cs.uu.nl%2Fdocs%2Fvakken%2Fgmspr%2FComparing%2520Images%2520Using%2520the%2520Hausdorff%2520Distance2.doc" rel="nofollow noreferrer">this</a> paper. Also, often mentioned in combination with the Hausdorff distance is the <a href="http://en.wikipedia.org/wiki/Voronoi_diagram" rel="nofollow noreferrer">Voroni diagram</a>.</p> <p>I hope these links might help you with this problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload