code: def slope(self):
          
          x = range(self.window_size)
          y = self.vals
          slope, bias = np.polyfit(x, y, 1)
          return slope
docs: :return: the esitmated slope for points in the current window