Example #1
0
 def fft_method(self, data, srate, epochs):
     from meg import fftmeg,nearest
     '''fftmeg.calc(p.data.data_block, p.data.srate,epochs=p.data.numofepochs)'''
     fftout = fftmeg.calc(data, srate,epochs=epochs)
     cut_low = nearest.nearest(fftout.freq,self.hz_range[0])[0]
     cut_high = nearest.nearest(fftout.freq,self.hz_range[1])[0]
     self.result = fftout.pow[cut_low:cut_high]
Example #2
0
 def fft(self):
     from meg import fftmeg
     self.results.fft = fftmeg.calc(self.data.data_block ,1/self.hdr.header_data.sample_period, epochs=self.data.numofepochs)