simpeg.electromagnetics.utils.convolve_with_waveform#
- simpeg.electromagnetics.utils.convolve_with_waveform(func, waveform, times, fargs=None, fkwargs=None)[source]#
convolves the function with the given waveform
This convolves the given function with the waveform and evaluates it at the given times. This uses a high order Gaussian-Legendre quadrature to evaluate, and could likely be slow.
- Parameters:
- func
callable()
function of t that should be convolved
- waveform
simpeg.electromagnetics.time_domain.waveforms.BaseWaveform
- timesarray_like
- fargs
list
,optional
extra arguments given to func
- fkwargs
dict
,optional
keyword arguments given to func
- func
- Returns:
numpy.ndarray
the convolution evaluate at the given times