MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_buffer_function() [2/2]

void MayaFlux::Nodes::Generator::Polynomial::set_buffer_function ( CoefBufferFunction  function,
PolynomialMode  mode,
size_t  buffer_size 
)

Sets a buffer function that receives the coefficient array.

Parameters
functionFunction receiving the history window and the coefficient array
modeProcessing mode (RECURSIVE or FEEDFORWARD)
buffer_sizeNumber of previous values to maintain

Definition at line 169 of file Polynomial.cpp.

170{
171 set_buffer_function(bind_coefficients(function), mode, buffer_size);
172 m_coef_function = std::move(function);
173 m_coef_bound = true;
174}
uint32_t mode
BufferFunction bind_coefficients(CoefBufferFunction function)
Converts coefficient vector to a polynomial function.
CoefBufferFunction m_coef_function
The function behind m_buffer_function while a CoefBufferFunction is bound.
void set_buffer_function(BufferFunction function, PolynomialMode mode, size_t buffer_size)
Sets a custom buffer function.
bool m_coef_bound
True once a CoefBufferFunction has been bound.

References bind_coefficients(), m_coef_bound, m_coef_function, mode, and set_buffer_function().

+ Here is the call graph for this function: