# How to rank polylines according to their similarity to a ref polyline?

How to rank polylines according to their similarity to a ref polyline?

Update 1: simulations show that simple $\sqrt{\sum{(case-ref)^2}}$ can find better similarity between polylines (as set of points) than Hausdorff distance! but not satisfied yet! (right-click >> view image >> for full resolution)

-
What do you need the metric for? Is something with a few big excursions worse than something that has a lot of small excursions from reference? –  BradHards Dec 19 '12 at 8:53
Thank you, indeed. Exactly what you said. Lots of small excursions are negligible, but a few big excursions never. –  Developer Dec 19 '12 at 9:10
Can you explain what more you need? –  BradHards Dec 20 '12 at 23:44
@BradHards: Sure. The simulation consisted of: a series of random numbers as ref (len=100), 10000 realizations of random series (same size). Objective to find best match through 10000 to ref. Error check the cumulative sum of differences. Also finally visual inspection was applied. Shown that often |d| is better than HD. But not always! Furthermore, visual and numeric methods do not agree always! Goal is to find a numeric measure broadly reliable. –  Developer Dec 21 '12 at 0:09
What is the reality you are trying to simulate? What is the random number distribution? –  BradHards Dec 21 '12 at 0:37