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