curvatureCalcluate | R Documentation |
Calculate curvature from the given x and y.
curvatureCalcluate(x, y)
x, y |
A numeric vector. |
A list of the index of the raw x, y, and the corresponding first derivative, second derivative and curvature.
y <- c(0, 1, 3, 6, 9, 12, 11, 7, 9, 5, 1, 9, 0, 1, 2) x <- 1:length(y) result <- curvatureCalcluate(x = x, y = y) result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.