Learn R Programming

LOMAR (version 0.5.0)

find_elbow: find_elbow

Description

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

Usage

find_elbow(values)

Value

index and value of the selected point

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