Learn R Programming

BioGSP (version 1.0.0)

find_knee_point: Find knee point in a curve

Description

Simple knee point detection using the maximum curvature method

Usage

find_knee_point(y, sensitivity = 1)

Value

Index of the knee point

Arguments

y

Numeric vector of y values

sensitivity

Sensitivity parameter (not used in this simple implementation)

Examples

Run this code
y <- c(1, 2, 3, 10, 11, 12)  # curve with a knee
knee_idx <- find_knee_point(y)

Run the code above in your browser using DataLab