d6df6857ff7493bfb4818241cf5edb30fe751e97,src/nsgtf.py,,nsgtf,#Any#Any#Any#Any#,12

Before Change


        if M[ii] < X: // if the number of time channels is too small, aliasing is introduced
            col = ceil(float(X)/M[ii])
            temp = N.zeros((M[ii],col),dtype=float)
            temp[-floor(X/2.):,:ceil(X/2.)] = f[win_range]*fftshift(N.conj(g[ii]))
            c.append(N.fft.ifft(N.sum(temp,axis=1)))
        else:
            temp = N.zeros((M[ii],1),dtype=float)

After Change


        win_range = N.mod(pos,Ls+fill)
        t = f[win_range]*fftshift(N.conj(g[ii]))
        // TODO: the following indexes can be written as two slices
        ixs = N.concatenate((N.arange(M[ii]-int(floor(X/2.)),M[ii]),N.arange(0,int(ceil(X/2.)))))

        if M[ii] < X: // if the number of time channels is too small, aliasing is introduced
            // TODO: branch not tested
            col = ceil(float(X)/M[ii])
            temp = N.zeros((M[ii],col),dtype=complex)
            temp[ixs] = t
            temp = N.sum(temp,axis=1)
        else:
            temp = N.zeros(M[ii],dtype=complex)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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


Project Name: scipy/scipy
Commit Name: d2650bdf23503b36f8380e39d282b507b672a449
Time: 2016-02-29
Author: pav@iki.fi
File Name: scipy/sparse/linalg/isolve/lgmres.py
Class Name:
Method Name: lgmres


Project Name: librosa/librosa
Commit Name: 04a78575a8d1973d95333f3ec1931f9ae0a16310
Time: 2015-01-17
Author: brian.mcfee@nyu.edu
File Name: librosa/core/constantq.py
Class Name:
Method Name: cqt


Project Name: LCAV/pyroomacoustics
Commit Name: 09902b89cdf8fc79d18f09216c285adb579c83b6
Time: 2018-02-27
Author: fakufaku@gmail.com
File Name: pyroomacoustics/doa/frida.py
Class Name: FRIDA
Method Name: _visibilities