diff --git a/elbow.py b/elbow.py index 81d03fc..5f0f7e6 100644 --- a/elbow.py +++ b/elbow.py @@ -29,7 +29,7 @@ def fit_points_to_reference( usL, dbL, usRefL, dbRefL ): return dbV -def find_elbow( usL, dbL, pointsPerLine=10 ): +def find_elbow( usL, dbL, pointsPerLine=5 ): ppl_2 = int(pointsPerLine/2) dL = [] @@ -58,7 +58,7 @@ def find_elbow( usL, dbL, pointsPerLine=10 ): i += 1 # find the max angle - i = np.argmax( dL ) + i = np.argmax( dL ) # return the x,y coordinate of the first data point of the second line return (usL[i+ppl_2],dbL[i+ppl_2])