powered by
Simple knee point detection using the maximum curvature method
find_knee_point(y, sensitivity = 1)
Index of the knee point
Numeric vector of y values
Sensitivity parameter (not used in this simple implementation)
y <- c(1, 2, 3, 10, 11, 12) # curve with a knee knee_idx <- find_knee_point(y)
Run the code above in your browser using DataLab