Browse Source

elbow.py : In find_elbow() change default 'pointsPerLine' to 5.

master
kevin 3 years ago
parent
commit
e32f224d12
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      elbow.py

+ 2
- 2
elbow.py View File

@@ -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])

Loading…
Cancel
Save