3 #include <noise/RandomNoiseSource.h> 14 template <
typename RealType>
39 RealType uniformNoiseMin = 0.0,
40 RealType uniformNoiseMax = 1.0
43 uniformNoiseMin(uniformNoiseMin),
44 uniformNoiseMax(uniformNoiseMax)
59 std::string
const & seed,
60 RealType uniformNoiseMin = 0.0,
61 RealType uniformNoiseMax = 1.0
64 uniformNoiseMin(uniformNoiseMin),
65 uniformNoiseMax(uniformNoiseMax)
67 this->
rg.computeUniformRealDistribution(
79 RealType uniformNoiseMin = 0.0,
80 RealType uniformNoiseMax = 1.0
83 uniformNoiseMin(uniformNoiseMin),
84 uniformNoiseMax(uniformNoiseMax)
86 this->
rg.computeUniformRealDistribution(
162 {
return this->
rg.uniformRealDistributionNext();}
169 template<
typename _RealType>
181 template <
typename RealType>
189 this->
rg.computeUniformRealDistribution(min, max);
195 template<
typename RealType>
196 std::ostream& operator<<(std::ostream &out, UniformNoiseSource<RealType> &ns){
197 out << static_cast<RandomNoiseSource<RealType>&>(ns);
198 out <<
"\t\tUniformNoiseSource:\n" 199 <<
"\t\t\tuniformNoiseMin = " << ns.getMin() <<
"\n" 200 <<
"\t\t\tuniformNoiseMax = " << ns.getMax() <<
"\n";
RandomnessGenerator< RealType > rg
RandomnessGenerator to be used to generate random noise.
Definition: RandomNoiseSource.h:23
Class to generate random numbers.
Definition: RandomnessGenerator.h:25
void build()
Common behavior for all NoiseSource constructors.
Definition: NoiseSource.h:85
Abstract class for random noise handling.
Definition: RandomNoiseSource.h:15
void computeUniformRealDistribution(RealType lowerBound, RealType upperBound)
Compute a uniform real distribution using the specified real data type.
Definition: RandomnessGenerator.h:343