00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_WHITE_NOISE_GENERATOR_H_
00028 #define CEYLAN_WHITE_NOISE_GENERATOR_H_
00029
00030
00031 #include "CeylanRandomGenerator.h"
00032
00033
00034 #include <string>
00035
00036
00037
00038 namespace Ceylan
00039 {
00040
00041
00042 namespace Maths
00043 {
00044
00045
00047 namespace Random
00048 {
00049
00050
00051
00052
00062 class CEYLAN_DLL WhiteNoiseGenerator : public RandomGenerator
00063 {
00064
00065
00066
00067 public:
00068
00069
00070
00090 WhiteNoiseGenerator( Sample lowerLimit,
00091 Sample upperLimit ) ;
00092
00093
00094
00121 WhiteNoiseGenerator( Sample lowerLimit,
00122 Sample upperLimit, Seed aSeed ) ;
00123
00124
00125
00126
00128 virtual ~WhiteNoiseGenerator() throw() ;
00129
00130
00131
00142 virtual void generateSeedFromCurrentTime() ;
00143
00144
00145
00147 virtual RandomValue getNewValue() ;
00148
00149
00150
00152 virtual void reset( Seed neeSeed ) ;
00153
00154
00155
00168 virtual const std::string toString(
00169 VerbosityLevels level = high ) const ;
00170
00171
00172
00173
00174 protected:
00175
00176
00182 virtual void preCompute() ;
00183
00184
00185
00186 private:
00187
00188
00197 WhiteNoiseGenerator( const WhiteNoiseGenerator & source ) ;
00198
00199
00208 WhiteNoiseGenerator & operator = (
00209 const WhiteNoiseGenerator & source ) ;
00210
00211
00212 } ;
00213
00214
00215 }
00216
00217 }
00218
00219 }
00220
00221
00222
00223 #endif // CEYLAN_WHITE_NOISE_GENERATOR_H_
00224