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

◆ Logic() [8/10]

MayaFlux::Nodes::Generator::Logic::Logic ( CoefSequentialFunction  function,
size_t  history_size,
std::vector< double >  coefficients = {} 
)

Constructs a Logic node with a state-based function and a coefficient array.

Parameters
functionFunction receiving the bit history and the coefficient array
history_sizeSize of the state history buffer
coefficientsInitial contents of the coefficient array

Definition at line 111 of file Logic.cpp.

112 : Logic(SequentialFunction {}, history_size)
113{
114 m_coefficients = std::move(coefficients);
115 set_sequential_function(std::move(function), history_size);
116}
void set_sequential_function(SequentialFunction function, size_t history_size)
Sets a custom state-based evaluation function.
Definition Logic.cpp:622
Logic(double threshold=0.5)
Constructs a Logic node with threshold quantization.
Definition Logic.cpp:9
std::vector< double > m_coefficients
Coefficient array handed to coefficient-aware functions.
Definition Logic.hpp:718
std::function< bool(std::span< bool >)> SequentialFunction
Function type for state-based evaluation.
Definition Logic.hpp:195

References m_coefficients, and set_sequential_function().

+ Here is the call graph for this function: