|
@@ -29,7 +29,7 @@ def fit_points_to_reference( usL, dbL, usRefL, dbRefL ):
|
29
|
29
|
|
30
|
30
|
return dbV
|
31
|
31
|
|
32
|
|
-def find_elbow( usL, dbL, pointsPerLine=10 ):
|
|
32
|
+def find_elbow( usL, dbL, pointsPerLine=5 ):
|
33
|
33
|
|
34
|
34
|
ppl_2 = int(pointsPerLine/2)
|
35
|
35
|
dL = []
|
|
@@ -58,7 +58,7 @@ def find_elbow( usL, dbL, pointsPerLine=10 ):
|
58
|
58
|
i += 1
|
59
|
59
|
|
60
|
60
|
# find the max angle
|
61
|
|
- i = np.argmax( dL )
|
|
61
|
+ i = np.argmax( dL )
|
62
|
62
|
|
63
|
63
|
# return the x,y coordinate of the first data point of the second line
|
64
|
64
|
return (usL[i+ppl_2],dbL[i+ppl_2])
|