97a543976472f88b7922cc8f8ef3d7c0b6cd3dee,beamfpy/sources.py,PointSource,result,#PointSource#Any#,146

Before Change


        rm = self.env.r(self.c, pos, self.mpos.mpos)
        delays = exp(-2j*pi*(rm/self.c)*\
            fft.fftfreq(int(self.numsamples),1.0/self.sample_freq)[:,newaxis])
        out = fft.ifft(signal[:, newaxis]*delays, axis=0).real/rm
        i = 0
        while i < self.numsamples:
            yield out[i:i+num]

After Change


        signal = self.signal.usignal(self.up)
        out = empty((num, self.numchannels))
        // distances
        rm = self.env.r(self.c, array(self.loc).reshape((3, 1)), self.mpos.mpos)
        // emission time relative to start_t (in samples) for first sample
        ind = (-rm/self.c-self.start_t+self.start)*self.sample_freq   
        i = 0
        n = self.numsamples        
        while n:
            n -= 1
            try:
                out[i] = signal[array(0.5+ind*self.up, dtype=long)]/rm
                ind += 1.
                i += 1
                if i == num:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: acoular/acoular
Commit Name: 97a543976472f88b7922cc8f8ef3d7c0b6cd3dee
Time: 2012-02-06
Author: sarradj@tu-cottbus.de
File Name: beamfpy/sources.py
Class Name: PointSource
Method Name: result


Project Name: librosa/librosa
Commit Name: 7bca836f56bcb10aaca45ded2088cad722a3416b
Time: 2013-03-09
Author: brm2132@columbia.edu
File Name: librosa/__init__.py
Class Name:
Method Name: istft


Project Name: grrrr/nsgt
Commit Name: d6df6857ff7493bfb4818241cf5edb30fe751e97
Time: 2011-03-30
Author: gr@grrrr.org
File Name: src/nsgtf.py
Class Name:
Method Name: nsgtf