98c7739b47adec260665c35aae410210b01e5648,pyroomacoustics/SoundSource.py,SoundSource,getImages,#SoundSource#Any#Any#Any#Any#,56

Before Change


            max_order = len(self.images)

        // stack source and all images
        img = np.array([self.position]).T
        for o in xrange(max_order):
            img = np.concatenate((img, self.images[o]), axis=1)

        if (n_nearest is not None):
            dist = np.sum((img - ref_point)**2, axis=0)
            i_nearest = dist.argsort()[0:n_nearest]
            img = img[:,i_nearest]

After Change


        // TO DO: Make this more efficient if bottleneck (unlikely)

        if (max_order is None):
            max_order = np.max(self.orders)

        // stack source and all images
        I_ord = (self.orders <= max_order)
        img = self.images[:,I_ord]

        if (n_nearest is not None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: LCAV/pyroomacoustics
Commit Name: 98c7739b47adec260665c35aae410210b01e5648
Time: 2014-11-27
Author: fakufaku@gmail.com
File Name: pyroomacoustics/SoundSource.py
Class Name: SoundSource
Method Name: getImages


Project Name: LCAV/pyroomacoustics
Commit Name: 98c7739b47adec260665c35aae410210b01e5648
Time: 2014-11-27
Author: fakufaku@gmail.com
File Name: pyroomacoustics/SoundSource.py
Class Name: SoundSource
Method Name: getDamping


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 76b6bcace9245a57f439d39deac653e2384a645b
Time: 2017-07-20
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/dataset.py
Class Name:
Method Name: max_QA