kneedle This function allows you to find the knee of a graph

kneedle(x, y, decreasing = FALSE, sensitivity = 1, concave = TRUE)

Arguments

x

A vector of x coordinates.

y

A vector of y coordinates.

decreasing

Is the function increasing? Defaults to FALSE.

sensitivity

How sensitive should knee detection be? Defaults to 1. Can be a float/double.

concave

Is this concave or convex? Defaults to TRUE.

Value

This function returns a x,y coordinate pair that corresponds to the knee point

Examples

x <- kneedle(c(1,2,3,4,5), c(0,1,2,40,60))