4 #include <noise/RandomNoiseSource.h>
15 template <
typename RealType>
60 std::string
const & seed,
68 this->
rg.computeUniformRealDistribution(
87 this->
rg.computeUniformRealDistribution(
163 {
return this->
rg.uniformRealDistributionNext();}
170 template<
typename _RealType>
182 template <
typename RealType>
188 this->uniformNoiseMin = min;
189 this->uniformNoiseMax = max;
190 this->rg.computeUniformRealDistribution(min, max);
196 template<
typename RealType>
198 out << static_cast<RandomNoiseSource<RealType>&>(ns);
199 out <<
"\t\tUniformNoiseSource:\n"
200 <<
"\t\t\tuniformNoiseMin = " << ns.
getMin() <<
"\n"
201 <<
"\t\t\tuniformNoiseMax = " << ns.
getMax() <<
"\n";
void build()
Common behavior for all NoiseSource constructors.
Definition: NoiseSource.h:85
Abstract class for random noise handling.
Definition: RandomNoiseSource.h:16
RandomnessGenerator< RealType > rg
RandomnessGenerator to be used to generate random noise.
Definition: RandomNoiseSource.h:24
Class to generate random numbers.
Definition: RandomnessGenerator.h:34
void computeUniformRealDistribution(RealType lowerBound, RealType upperBound)
Compute a uniform real distribution using the specified real data type.
Definition: RandomnessGenerator.h:354