curvatureCalcluate: Calculate curvature from the given x and y.

View source: R/utils.R

curvatureCalcluateR Documentation

Calculate curvature from the given x and y.

Description

Calculate curvature from the given x and y.

Usage

curvatureCalcluate(x, y)

Arguments

x, y

A numeric vector.

Value

A list of the index of the raw x, y, and the corresponding first derivative, second derivative and curvature.

Examples

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

zh542370159/dropSplit documentation built on June 19, 2022, 2:49 p.m.