VISR  0.11.1
Versatile Interactive Scene Renderer
visr::efl::LagrangeCoefficientCalculator< DataType, N, reverseCoeffs > Class Template Reference

#include <lagrange_coefficient_calculator.hpp>

Public Member Functions

 LagrangeCoefficientCalculator ()
 
void calculateCoefficients (DataType mu, DataType *result) const
 

Detailed Description

template<typename DataType, std::size_t N, bool reverseCoeffs = false>
class visr::efl::LagrangeCoefficientCalculator< DataType, N, reverseCoeffs >

Class template to calculate the parameters of a Lagrange interpolator.

Parameters
DataTypeThe numerical type of the sequence samples to be interpolated.
NThe order of Lagrange interpolation
Template Parameters
reverseOrderWhether 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.

Constructor & Destructor Documentation

◆ LagrangeCoefficientCalculator()

template<typename DataType , std::size_t N, bool reverseCoeffs>
visr::efl::LagrangeCoefficientCalculator< DataType, N, reverseCoeffs >::LagrangeCoefficientCalculator ( )

Default constructor, initialises the constant coefficients.

Member Function Documentation

◆ calculateCoefficients()

template<typename DataType, std::size_t N, bool reverseCoeffs>
void visr::efl::LagrangeCoefficientCalculator< DataType, N, reverseCoeffs >::calculateCoefficients ( DataType  mu,
DataType *  result 
) const

Calculation function.

Parameters
muThe intersample position. Negative values are further into the past (left of the sample), smaller values mean less delay.
resultBuffer to hold the result, must provide space for N+1 elements.

The documentation for this class was generated from the following files: