uik | R Documentation |
It finds the UIK estimation for elbow or knee point of a curve, see [1] for details.
uik(x, y)
x |
The numeric vector of x-abscissas, must be of length at least 4. |
y |
The numeric vector of y-abscissas, must be of length at least 4. |
Given the x, y numeric vectors it first checks the curve by using check_curve
and classifies it as convex, concave or convex/concave, concave/convex.
It returns the x-abscissa which is the UIK estimation for the knee point.
Demetris T. Christopoulos
[1] Christopoulos, Demetris T., Introducing Unit Invariant Knee (UIK) As an Objective Choice for Elbow Point in Multivariate Data Analysis Techniques (March 1, 2016). Available at SSRN: https://ssrn.com/abstract=3043076 or http://dx.doi.org/10.2139/ssrn.3043076
check_curve
and d2uik
## Lets create a convex data set x=seq(1,10,0.05) y=1/x plot(x,y) knee=uik(x,y) knee ## [1] 3.15 abline(v=knee) ## Lets add noise to them now set.seed(20190625) x=seq(1,10,0.05) y=1/x+runif(length(x),-0.02,0.02) plot(x,y) knee=uik(x,y) knee ## [1] 3.3 abline(v=knee)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.