Open PaperOpt
OpenPaperOpt/Distribution.h
Go to the documentation of this file.
00001 
00005 #ifndef DISTRIBUTION_H
00006 #define DISTRIBUTION_H
00007 
00008 #include <stdlib.h>
00009 #include <iostream>
00010 #include "utilities.h"
00011 #include <complex>
00012 #include <vector>
00013 #include "V3.h"
00014 
00015 #ifndef PI
00016   #define PI 3.1415926535897932384626433832795
00017 #endif
00018 #ifndef RAD
00019   #define RAD (PI/180.0)
00020 #endif
00021 using namespace std;
00022 
00023 namespace Distributions
00024 {
00025         class Distribution
00026         {
00027         public:
00028                 
00029 
00033                 Distribution(void);
00034 
00038                 virtual ~Distribution(void);
00039 
00045                 virtual double GenerateRandomNumber() const  {cerr << "CALL TO DISTRIBUTION GENERATERANDOmNumber!";return 0 ; }  ;
00046 
00057                 virtual double GenerateRandomNumber(int NbrLambda) const;
00058 
00065                 virtual V3<double>  GenerateRandomVector() const {return V3<double> (0,0,0);};
00066         };
00067 }
00068 
00069 #endif // DISTRIBUTION_H