{ } Raw JSON

bundles / scipy latest / scipy / signal / _signaltools / _freq_domain_conv

function

scipy.signal._signaltools:_freq_domain_conv

source: /scipy/signal/_signaltools.py :487

Signature

def   _freq_domain_conv ( xp in1 in2 axes shape calc_fast_len = False )

Summary

Convolve two arrays in the frequency domain.

Extended Summary

This function implements only base the FFT-related operations. Specifically, it converts the signals to the frequency domain, multiplies them, then converts them back to the time domain. Calculations of axes, shapes, convolution mode, etc. are implemented in higher level-functions, such as fftconvolve and oaconvolve. Those functions should be used instead of this one.

Parameters

in1 : array_like

First input.

in2 : array_like

Second input. Should have the same number of dimensions as in1.

axes : array_like of ints

Axes over which to compute the FFTs.

shape : array_like of ints

The sizes of the FFTs.

calc_fast_len : bool, optional

If True, set each value of shape to the next fast FFT length. Default is False, use axes as-is.

Returns

out : array

An N-dimensional array containing the discrete linear convolution of in1 with in2.

Aliases

  • scipy.signal._signaltools._freq_domain_conv