ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/randomSPRNG.hpp
(Generate patch)

Comparing trunk/mdtools/headers/randomSPRNG.hpp (file contents):
Revision 221 by chuckv, Thu Jan 2 20:14:08 2003 UTC vs.
Revision 249 by chuckv, Mon Jan 27 21:28:19 2003 UTC

# Line 1 | Line 1
1 < #idndef __randomSPRNG_H
1 > #ifndef __randomSPRNG_H
2   #define __randomSPRNG_H
3  
4   /* Define the random number generator used by SPRNG
# Line 15 | Line 15 | class randomSPRNG{ (public)
15    ~randomSPRNG();
16  
17    double getRandom();
18 < private:
18 >
19 > protected:
20    int *thisStream;
21    int myStreamNumber;
22    int nSPRNGStreams;
23    static int nStreamsInitialized;
24  
25 < }
25 > };
26  
27  
28 < class gaussianSPRNG : public randomSPRNG{
28 > class gaussianSPRNG : protected randomSPRNG{
29 >
30   public:
31 <  gaussianSPRNG();
32 <  ~gaussianSPRNG();
31 >  gaussianSPRNG(int iseed):randomSPRNG(iseed){}
32 >  ~gaussianSPRNG(){}
33  
34    double getGaussian();
33 private:
34  using randomSPRNG::getRandom;
35  double getRandom() { getRandom(); }
36 }
35  
36 + protected:
37  
38 + };
39  
40 +
41 +
42   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines