| elbow_point | R Documentation | 
elbow_point computes the elbow point based on the maximum distance
between each point and the line passing through the end points.
elbow_point(x, y)
x | 
 A numeric vector  | 
y | 
 A numeric vector  | 
A list with the index (idx), x-value (x) and
y-value (y) of the elbow point.
Joshua French and Mohammad Meysami
https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line
optimal_ubpop
# generate some data
x <- c(0, 0.5, 1)
y <- c(1, 0.1, 0)
# plot data (the second point is clearly the elbow)
plot(x, y)
elbow_point(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.