Procházet zdrojové kódy

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

master
kevin před 3 roky
rodič
revize
e32f224d12
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      elbow.py

+ 2
- 2
elbow.py Zobrazit soubor

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

Načítá se…
Zrušit
Uložit