Compute the Housdorff distance between two toolmark patterns. The striation patterns are not aligned before the distance is calculated. The Hausdorff distance is defined as the maximum among the shortest distances between two curves. Here, we allow to trim the largest distances to make the distance more robust
get_H(y1, y2, trim = 0)
y1 | vector of equi-distant toolmark values |
---|---|
y2 | vector of equi-distant toolmark values |
trim | percentage of largest distances to be trimmed. |