|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::lagrange_delay | ( | double | delay, |
| size_t | order | ||
| ) |
Lagrange fractional-delay FIR coefficients.
Interpolates between samples at a non-integer offset by fitting a polynomial through order + 1 consecutive points. Order 1 is linear interpolation; order 3 at a fractional position reproduces the Catmull-Rom weights held as a matrix in Kinesis::BasisMatrices, generalised to any order.
Accuracy is highest when delay falls near the centre of the tap span, so callers wanting a delay of D samples with order N typically use an integer delay line of D - N/2 followed by this kernel for the remainder.
| delay | Delay in samples, need not be integral; clamped to [0, order] |
| order | Polynomial order; produces order + 1 taps |
Definition at line 253 of file Coefficients.cpp.
Here is the call graph for this function: