7a77233231c67038271c9945760b7a1d711b242d,pyroomacoustics/beamforming.py,Beamformer,steering_vector_2D_from_point,#Beamformer#Any#Any#Any#Any#,361

Before Change


        // normalize for far-field if requested
        if (ff):
            X -= self.center
            Xn = np.sqrt(np.sum(X**2, axis=0))
            X *= constants.get("ffdist")/Xn
            X += self.center

        D = distance(self.R, X)

After Change


        // normalize for far-field if requested
        if (ff):
            // unit vectors pointing towards sources
            p = (X - self.center)
            p /= np.linalg.norm(p)

            // The projected microphone distances on the unit vectors
            D = np.dot(self.R.T, p)

            // subtract minimum in each column
            D -= np.min(D)

        else:

            D = distance(self.R, X)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: LCAV/pyroomacoustics
Commit Name: 7a77233231c67038271c9945760b7a1d711b242d
Time: 2017-04-04
Author: fakufaku@gmail.com
File Name: pyroomacoustics/beamforming.py
Class Name: Beamformer
Method Name: steering_vector_2D_from_point


Project Name: chainer/chainercv
Commit Name: fe9b27b4e279a45a4aa16c3b289c4e600384b4da
Time: 2017-09-29
Author: yuyuniitani@gmail.com
File Name: tests/transforms_tests/image_tests/test_random_sized_crop.py
Class Name: TestRandomSizedCrop
Method Name: test_random_sized_crop


Project Name: LCAV/pyroomacoustics
Commit Name: 5214393bb75498ded8fc140914edd79c1799af05
Time: 2017-04-04
Author: fakufaku@gmail.com
File Name: pyroomacoustics/beamforming.py
Class Name: Beamformer
Method Name: steering_vector_2D_from_point