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

◆ Logic() [7/10]

MayaFlux::Nodes::Generator::Logic::Logic ( CoefDirectFunction  function,
std::vector< double >  coefficients 
)

Constructs a Logic node with a stateless function and a coefficient array.

Parameters
functionFunction receiving the input and the coefficient array
coefficientsInitial contents of the coefficient array

Definition at line 104 of file Logic.cpp.

106{
107 m_coefficients = std::move(coefficients);
108 set_direct_function(std::move(function));
109}
void set_direct_function(DirectFunction function)
Sets a custom combinational logic function.
Definition Logic.cpp:552
Logic(double threshold=0.5)
Constructs a Logic node with threshold quantization.
Definition Logic.cpp:9
std::function< bool(double)> DirectFunction
Function type for stateless boolean evaluation.
Definition Logic.hpp:185
std::vector< double > m_coefficients
Coefficient array handed to coefficient-aware functions.
Definition Logic.hpp:718

References m_coefficients, and set_direct_function().

+ Here is the call graph for this function: