I have 3 functions (built by x,y values: CSV file link).
The red one is a baseline function. The green and blue ones are approximated versions of the red ones. It is clear that the green one is much more similar to the red one and the blue one is a very aggressive function with many overshoots.
I want to find a metric that will show that. So, the similarity score between green and red will be higher than between blue and red so this metric will show the aggressiveness.
Both green and blue are slightly above the red one, so if I use RMS, the similarity of the blue and green to the red one is the same, and it doesn't reflect the overshoot aggressiveness.
Which metric can I use to evaluate the functions' similarity to the baseline function?




Following your comment, maybe you can try the Kolmogorov-Smirnov test-based criteria, i.e.,
$$ D = \sup_x| F_{1, n}(x) - F_{2, n}(x)|. $$