'Average the data across epochs.
Returns
ave : instance of AverageTFR
The averaged data.'

def average(self):

    data = np.mean(self.data, axis=0)
    return AverageTFR(info=self.info.copy(), data=data, times=self.times.copy(), freqs=self.freqs.copy(), nave=self.data.shape[0], method=self.method)
