nussl/separation/spatial/duet.py
def _convert_peaks(self, peak_indices):
        """Receives the attenuation and delay bins and computes the delay/attenuation
        peaks based on the peak finder indices.

        Returns:
            delay_peak(np.array): The delay peaks determined from the histogram
            atn_delay_est (np.array): The estimated symmetric attenuation and delay values
            atn_peak (np.array): Attenuation converted from symmetric attenuation
        """
        atn_indices = [x[0] for x in peak_indices]
        delay_indices = [x[1] for x in peak_indices]

        symmetric_atn_peak = self.attenuation_bins[atn_indices]
        delay_peak = self.delay_bins[delay_indices]

        atn_delay_est = np.column_stack((symmetric_atn_peak, delay_peak))

        # convert symmetric_atn to atn_peak using formula from Rickard
        atn_peak = (symmetric_atn_peak + np.sqrt(symmetric_atn_peak ** 2 + 4)) / 2
        return delay_peak, atn_delay_est, atn_peak
Receives the attenuation and delay bins and computes the delay/attenuation
        peaks based on the peak finder indices.

        Returns:
            delay_peak(np.array): The delay peaks determined from the histogram
            atn_delay_est (np.array): The estimated symmetric attenuation and delay values
            atn_peak (np.array): Attenuation converted from symmetric attenuation
        
Receives the attenuation and delay bins and computes the delay/attenuation
peaks based on the peak finder indices.
Receives the attenuation and delay bins and computes the delay / attenuation peaks based on the peak finder indices .
def _convert_peaks(self, peak_indices):
        atn_indices = [x[0] for x in peak_indices]
        delay_indices = [x[1] for x in peak_indices]
        symmetric_atn_peak = self.attenuation_bins[atn_indices]
        delay_peak = self.delay_bins[delay_indices]
        atn_delay_est = np.column_stack((symmetric_atn_peak, delay_peak))
        atn_peak = (symmetric_atn_peak + np.sqrt(symmetric_atn_peak ** 2 + 4)) / 2
        return delay_peak, atn_delay_est, atn_peak
def _convert_peaks ( self , peak_indices ) : atn_indices = [ x [ 0 ] for x in peak_indices ] delay_indices = [ x [ 1 ] for x in peak_indices ] symmetric_atn_peak = self . attenuation_bins [ atn_indices ] delay_peak = self . delay_bins [ delay_indices ] atn_delay_est = np . column_stack ( ( symmetric_atn_peak , delay_peak ) ) atn_peak = ( symmetric_atn_peak + np . sqrt ( symmetric_atn_peak ** 2 + 4 ) ) / 2 return delay_peak , atn_delay_est , atn_peak
Receives the attenuation and delay bins and computes the delay/attenuation
peaks based on the peak finder indices.
Receives the attenuation and delay bins and computes the delay / attenuation peaks based on the peak finder indices .
"""Receives the attenuation and delay bins and computes the delay/attenuation
        peaks based on the peak finder indices.

        Returns:
            delay_peak(np.array): The delay peaks determined from the histogram
            atn_delay_est (np.array): The estimated symmetric attenuation and delay values
            atn_peak (np.array): Attenuation converted from symmetric attenuation
        """ # convert symmetric_atn to atn_peak using formula from Rickard
The delay peaks determined from the histogram
atn_delay_est (np.array): The estimated symmetric attenuation and delay values
atn_peak (np.array): Attenuation converted from symmetric attenuation
The delay peaks determined from the histogram atn_delay_est ( np . array ) : The estimated symmetric attenuation and delay values atn_peak ( np . array ) : Attenuation converted from symmetric attenuation
delay_peak(np.array)
self
peak_indices