ede function

The Extremum Distance Estimator (EDE) for finding the inflection point of a convex/concave curve