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

◆ validate_range()

void MayaFlux::Nodes::Generator::Stochastics::Random::validate_range ( double  start,
double  end 
) const
private

Validates that the specified range is mathematically valid.

Parameters
startLower bound of the range
endUpper bound of the range
Exceptions
std::invalid_argumentif the range is invalid

Ensures that the range parameters satisfy the mathematical constraints of the selected distribution algorithm.

Definition at line 86 of file Stochastic.cpp.

87{
88 if (start > end) {
89 throw std::invalid_argument("Start must be less than or equal to end");
90 }
91}

Referenced by random_array(), and random_sample().

+ Here is the caller graph for this function: