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

◆ process_batch()

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

Generates multiple stochastic values at once.

Parameters
num_samplesNumber of values to generate
Returns
Vector of generated values

This method efficiently generates multiple values in a single operation, useful for batch processing or filling buffers.

Implements MayaFlux::Nodes::Node.

Definition at line 45 of file Stochastic.cpp.

46{
47 return random_array(m_current_start, m_current_end, num_samples);
48}
std::vector< double > random_array(double start, double end, unsigned int num_samples)
Generates an array of stochastic values within a specified range.
double m_current_start
Lower bound of the current output range.
double m_current_end
Upper bound of the current output range.

References m_current_end, m_current_start, and random_array().

+ Here is the call graph for this function: