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

◆ process_batch()

std::vector< double > MayaFlux::Nodes::Generator::Logic::process_batch ( unsigned int  num_samples)
overridevirtual

Processes multiple samples in batch mode.

Parameters
num_samplesNumber of samples to generate
Returns
Vector of binary outputs (1.0 for true, 0.0 for false)

Generates a sequence of binary values by repeatedly applying the configured logic operation. In stateful modes, each output depends on previous results.

Implements MayaFlux::Nodes::Node.

Definition at line 240 of file Logic.cpp.

241{
242 std::vector<double> output(num_samples);
243
244 for (unsigned int i = 0; i < num_samples; ++i) {
245 // For batch processing, we use 0.0 as input
246 // This is mainly useful for temporal or sequential modes
247 output[i] = process_sample(0.0);
248 }
249
250 return output;
251}
double process_sample(double input=0.) override
Processes a single input sample through the logic function.
Definition Logic.cpp:115

References process_sample().

+ Here is the call graph for this function: