pylops.signalprocessing.downsample2d.standard_deviation_from_attenuation

pylops.signalprocessing.downsample2d.standard_deviation_from_attenuation(factor, attenuation)[source]

Calculate the standard deviation of a Gaussian filter from the desired attenuation at the new Nyquist frequency after downsampling.

Parameters:
factorint

Downsampling factor.

attenuationfloat

Desired attenuation (in dB) at the new Nyquist frequency. Although the attenuation is effectively a negative quantity (e.g. \(-3dB\)), it must be provided here as a positive value.

Returns:
sigmafloat

Standard deviation of the Gaussian filter (in number of samples).