Given a list of x, y coordinates on a curve, function determines the elbow point of the curve.
elbow_point(x, y)
x | vector of x coordinates of points on the curve |
---|---|
y | vector of y coordinates of points on the curve |
indicate the optimal k value determined by the elbow point point.
highlight the maximum curvature to identify the elbow point (credit: 'github.com/agentlans')