pyeeg.utils
.find_knee_point
- pyeeg.utils.find_knee_point(x, y, tol=0.95, plot=False)
Function to find elbow or knee point (minimum local curvature) in a curve. To do so we look at the angles between adjacent segments formed by triplet of points.
- Parameters:
x (1darray) – x- coordinate of the curve
y (1darray) – y- coordinate of the curve
plot (bool (default: False)) – Whether to plot the result
- Returns:
The x-value of the point of maximum curvature
- Return type:
float
Notes
The function only works well on smooth curves.