5214393bb75498ded8fc140914edd79c1799af05,pyroomacoustics/beamforming.py,Beamformer,steering_vector_2D_from_point,#Beamformer#,361

Before Change


            X = source[:, np.newaxis]

        // 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)
        omega = 2 * np.pi * frequency

        if attn:

After Change


            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)

        phase = np.exp(-1j * omega * D / constants.get("c"))

        if attn:
            // TO DO 1: This will mean slightly different absolute value for
            // every entry, even within the same steering vector. Perhaps a
            // better paradigm is far-field with phase carrier.
            return 1. / (4 * np.pi) / D * phase
        else:
            return phase

    def response(self, phi_list, frequency):

        i_freq = np.argmin(np.abs(self.frequencies - frequency))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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


Project Name: utiasSTARS/liegroups
Commit Name: 55a12239a7638c0052b1f91f640f819a8c71face
Time: 2017-05-12
Author: clement.leopold@gmail.com
File Name: liegroups/so2.py
Class Name: SO2
Method Name: __mul__


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: utiasSTARS/liegroups
Commit Name: 55a12239a7638c0052b1f91f640f819a8c71face
Time: 2017-05-12
Author: clement.leopold@gmail.com
File Name: liegroups/so3.py
Class Name: SO3
Method Name: __mul__