Description Usage Arguments Value Examples
Identifies the point farthest from a line passing through by the first and last points. Used for automatization of the elbow method.
| 1 | farthestPoint(y, x = NULL)
 | 
| y | Monotonically inscreasing or decreasing values | 
| x | Optional x coordinates corresponding to 'y' (defaults to seq) | 
The value of 'x' farthest from the diagonal.
| 1 2 3 4 | y <- 2^(10:1)
plot(y)
x <- farthestPoint(y)
points(x,y[x],pch=16)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.