elbow.py : In find_elbow() change default 'pointsPerLine' to 5.
This commit is contained in:
parent
109944f130
commit
e32f224d12
4
elbow.py
4
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])
|
||||
|
Loading…
Reference in New Issue
Block a user