Sfoglia il codice sorgente

Fix the average lifetime residuals bug

Vadim Markovtsev 7 anni fa
parent
commit
271f56ada2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      labours.py

+ 1 - 0
labours.py

@@ -43,6 +43,7 @@ def calculate_average_lifetime(matrix):
                 start += 1
                 continue
             lifetimes[i - start] = band[i - 1] - line
+        lifetimes[i - start] = band[i - 1]
     return (lifetimes.dot(numpy.arange(1, matrix.shape[1], 1))
             / (lifetimes.sum() * matrix.shape[1]))