find_elbow: find_elbow

View source: R/utils.R

find_elbowR Documentation

find_elbow

Description

Find elbow in a 2D curve represented by a list of ordered values

Usage

find_elbow(values)

Arguments

values

vector of values in decreasing order

Details

This function finds the point with maximum distance from the line between the first and last points. Adapted from StackOverflow: http://stackoverflow.com/questions/2018178/finding-the-best-trade-off-point-on-a-curve

Value

index and value of the selected point


LOMAR documentation built on March 18, 2022, 6:05 p.m.