pylops.Smoothing1D¶

pylops.
Smoothing1D
(nsmooth, dims, dir=0, dtype='float64')[source]¶ 1D Smoothing.
Apply smoothing to model (and data) along a specific direction of a multidimensional array depending on the choice of
dir
.Parameters: Notes
The Smoothing1D operator is a special type of convolutional operator that convolves the input model (or data) with a constant filter of size \(n_{smooth}\):
\[\mathbf{f} = [ 1/n_{smooth}, 1/n_{smooth}, ..., 1/n_{smooth} ]\]When applied to the first direction:
\[y[i,j,k] = 1/n_{smooth} \sum_{l=(n_{smooth}1)/2}^{(n_{smooth}1)/2} x[l,j,k]\]Similarly when applied to the second direction:
\[y[i,j,k] = 1/n_{smooth} \sum_{l=(n_{smooth}1)/2}^{(n_{smooth}1)/2} x[i,l,k]\]and the third direction:
\[y[i,j,k] = 1/n_{smooth} \sum_{l=(n_{smooth}1)/2}^{(n_{smooth}1)/2} x[i,j,l]\]Note that since the filter is symmetrical, the Smoothing1D operator is selfadjoint.
Attributes: