Changeset 3613 in Sophya for trunk/SophyaLib/TArray/utilarr.h
- Timestamp:
- Apr 30, 2009, 7:07:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.h
r2917 r3613 8 8 #include "machdefs.h" 9 9 #include "mutyv.h" 10 #include "randinterf.h" 10 11 11 12 #include <stdlib.h> … … 56 57 57 58 explicit RandomSequence(int typ = RandomSequence::Gaussian, double m=0., double s=1.); 59 explicit RandomSequence(RandomGeneratorInterface& rgen, RNDTypes rtyp=C_RND_Gaussian, double mean=0., double sigma=1.); 58 60 virtual ~RandomSequence(); 59 61 virtual MuTyV & Value(sa_size_t k) const ; 60 double Rand();62 double Next() const ; 61 63 62 64 protected: 63 inttyp_; //!< random generation type65 RNDTypes typ_; //!< random generation type 64 66 double mean_, sig_; //!< generation parameters mean and sigma (if needed) 65 67 mutable MuTyV retv_; 68 mutable RandomGeneratorInterface* rgp_; 66 69 }; 67 70
Note:
See TracChangeset
for help on using the changeset viewer.