MayaFlux 0.2.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 98 of file Stochastic.cpp.

99{
100 if (start > end) {
101 throw std::invalid_argument("Start must be less than or equal to end");
102 }
103}

Referenced by random_array(), and random_sample().

+ Here is the caller graph for this function: