scippneutron.smoothing#
Kernel smoothing of one-dimensional sampled signals.
smooth applies a translation-invariant displacement distribution, for a kernel
whose width is constant in coordinate units. smooth_relative instead applies a
distribution of fractional displacements, so its width scales with the coordinate.
Both procedures accept irregularly spaced samples. They interpolate onto a uniform or geometric working grid that is no coarser than the tightest input spacing, integrate the kernel probability over grid cells, renormalize the convolution at finite boundaries, and interpolate the result back to the original coordinates.
Functions
|
Smooth sampled data with a translation-invariant kernel. |
|
Smooth sampled data with a kernel of relative width. |