![]() |
VISR
0.12.0
Versatile Interactive Scene Renderer
|
#include <lagrange_coefficient_calculator.hpp>
Public Member Functions | |
LagrangeCoefficientCalculator () | |
void | calculateCoefficients (DataType mu, DataType *result) const |
Class template to calculate the parameters of a Lagrange interpolator.
DataType | The numerical type of the sequence samples to be interpolated. |
N | The order of Lagrange interpolation |
reverseOrder | Whether the output coefficients are stored in normal FIR filter order (false) or reversed (true). The latter enables filtering via a dot product without reversing one of the sequences. |
visr::efl::LagrangeCoefficientCalculator< DataType, N, reverseCoeffs >::LagrangeCoefficientCalculator | ( | ) |
Default constructor, initialises the constant coefficients.
void visr::efl::LagrangeCoefficientCalculator< DataType, N, reverseCoeffs >::calculateCoefficients | ( | DataType | mu, |
DataType * | result | ||
) | const |
Calculation function.
mu | The intersample position. Negative values are further into the past (left of the sample), smaller values mean less delay. |
result | Buffer to hold the result, must provide space for N+1 elements. |