-
Notifications
You must be signed in to change notification settings - Fork 0
signal.Resampling
Christian d'Heureuse edited this page Jun 6, 2026
·
1 revision
dsp-collection / signal/Resampling
Resampling functions.
There are optimized and reference implementations of resampling functions in this module.
The optimized functions for resampling with nearest-neighbor, linear and averaging interpolation use an integer counting algorithm, similar to the Bresenham algorithm used for line drawing. This is faster than using floating point numbers and avoids rounding problems and artefacts that can occur with floating point arithmetic.
| Function | Description |
|---|---|
| resampleAverage | Optimized one-dimensional resampling using averaging interpolation. |
| resampleAverageRef | Reference implementation of one-dimensional resampling using averaging interpolation. |
| resampleLinear | Optimized one-dimensional resampling using linear interpolation. |
| resampleLinearRef | Reference implementation of one-dimensional resampling using linear interpolation. |
| resampleNearestNeighbor | Optimized one-dimensional resampling using nearest-neighbor interpolation. |
| resampleNearestNeighborRef | Reference implementation of one-dimensional resampling using nearest-neighbor interpolation. |