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

◆ batch()

std::vector< double > MayaFlux::Kinesis::Stochastic::Stochastic::batch ( double  min,
double  max,
size_t  count 
)

Batch generation.

Parameters
minLower bound
maxUpper bound
countNumber of values
Returns
Vector of generated values

Definition at line 84 of file Stochastic.cpp.

85{
86 validate_range(min, max);
87
88 std::vector<double> result;
89 result.reserve(count);
90
91 for (size_t i = 0; i < count; ++i) {
92 result.push_back((*this)(min, max));
93 }
94
95 return result;
96}
Eigen::Index count
void validate_range(double min, double max) const

References count, and validate_range().

Referenced by MayaFlux::Nodes::Generator::Random::process_batch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: