MayaFlux 0.2.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 237 of file Logic.cpp.

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

References process_sample().

+ Here is the call graph for this function: