Identifies the "elbow" point in a metric-vs-H curve using the perpendicular distance method. Useful for model selection when fitting multiple H values (e.g., identifying the optimal H by finding where RMSE or variance improvements plateau).
Details
The elbow method finds where the curve transitions from steep to flat. The algorithm:
Identifies the decreasing region of the curve
Normalizes x and y to 0,1 scale
Draws a line from the start to the end of the decreasing region
Calculates perpendicular distance from each point to this line
Returns the x-value (H) with maximum perpendicular distance
This is particularly useful for model selection when the optimal H is unclear from the metric alone.