code: def rate(self):
          
          N = len(self.timestamps)
          t = self.timestamps[-1] - self.timestamps[0]
          rate = 1.0 * N / t
          return rate
docs: Get the sample rate in Hz.
          
          Returns
          ---------
          rate : float
                  The sample rate, in Hz, calculated from the timestamps