Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

elbow_point

Determine the elbow point on a curve


Description

Given a list of x, y coordinates on a curve, function determines the elbow point of the curve.

Usage

elbow_point(x, y)

Arguments

x

vector of x coordinates of points on the curve

y

vector of y coordinates of points on the curve

Details

highlight the maximum curvature to identify the elbow point (credit: 'github.com/agentlans')

Value

indicate the optimal k value determined by the elbow point point.

Examples

# Generate some curve
x <- runif(100, min=-2, max=3)
y <- -exp(-x) * (1+rnorm(100)/3)
plot(x, y)
#Plot elbow points
abline(v=elbow_point(x,y)$y, col="blue", pch=20, cex=3)

akmedoids

Anchored Kmedoids for Longitudinal Data Clustering

v1.3.0
GPL-3
Authors
Monsuru Adepeju [cre, aut], Samuel Langton [aut], Jon Bannister [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.