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

View source: R/kneedle.R

kneedleR Documentation

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

Description

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

Usage

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

Arguments

x

A vector of x coordinates.

y

A vector of y coordinates.

decreasing

Is the function increasing? Algorithm will take a guess at direction of data if not specified.

concave

Is this concave or convex? Algorithm will take a guess at concavity if not specified.

sensitivity

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

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))

etam4260/kneedle documentation built on Sept. 12, 2022, 5:13 p.m.