fit_curvature_min: Minimum curvature analysis (elbow detection)

View source: R/trans_fit_curvature_min.R

fit_curvature_minR Documentation

Minimum curvature analysis (elbow detection)

Description

Computes a smoothing spline over a sequence and returns the location/value of minimum curvature, complementary to maximum curvature and useful in elbow detection.

Usage

fit_curvature_min()

Value

Returns an object of class fit_curvature_max, which inherits from the fit_curvature and dal_transform classes. The object contains a list with the following elements:

  • x: The position in which the minimum curvature is reached.

  • y: The value where the the minimum curvature occurs.

  • yfit: The value of the minimum curvature.

Examples

x <- seq(from=1,to=10,by=0.5)
dat <- data.frame(x = x, value = log(x), variable = "log")
myfit <- fit_curvature_min()
res <- transform(myfit, dat$value)
head(res)

daltoolbox documentation built on Nov. 5, 2025, 7:09 p.m.