|
Open PaperOpt
|
00001 00004 #pragma once 00005 #ifndef DISTRIBUTIONCONSTANT_H 00006 #define DISTRIBUTIONCONSTANT_H 00007 00008 // INCLUDES 00009 // 00010 #include "Distribution.h" 00011 00012 namespace Distributions 00013 { 00014 class DistributionConstant : 00015 public Distribution 00016 { 00017 public: 00018 // LIFECYCLE 00019 00025 DistributionConstant(double Value); 00026 00030 ~DistributionConstant(void); 00031 00032 // OPERATIONS 00038 double GenerateRandomNumber() const; 00039 private: 00040 double mValue; 00041 }; //DistributionConstant 00042 00043 } //Distributions 00044 00045 #endif // DISTRIBUTION_H