elbow: Detect Inflection Point of a Concave Curve (Elbox Method)....

View source: R/utils.R

elbowR Documentation

Detect Inflection Point of a Concave Curve (Elbox Method). Ripped from: https://github.com/ahasverus/elbow

Description

This function implements the Elbow (or knee of a curve) method to detect the inflection point of a concave curve. More information on this method: https://en.wikipedia.org/wiki/Elbow_method_(clustering).

Usage

elbow(data)

Arguments

data

a two-columns data frame (x and y respectively).

Details

This function detects unique inflection point in a simple concave curve. The curve can be concave down/up with a positive/negative slope.

Value

This function returns a 2-elements list with:

  • the value on x-Axis corresponding to the inflection point

  • a data frame with the original data and two additional columns used in the graphic.

Author(s)

Nicolas CASAJUS, nicolas.casajus@fondationbiodiversite.com


BlishLab/scriabin documentation built on Sept. 16, 2024, 1:19 a.m.