Changeset 850 in Sophya for trunk/SophyaLib/TArray/utilarr.h
- Timestamp:
- Apr 10, 2000, 2:57:45 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.h
r813 r850 16 16 typedef float (* Arr_FloatFunctionOfX) (float x); 17 17 18 class RandomSequence { 19 public: 20 enum { Gaussian = 0, Flat = 1 }; 21 RandomSequence(int typ = RandomSequence::Gaussian, double m=0., double s=1.); 22 double Rand(); 23 protected: 24 int typ_; 25 double mean_, sig_; 26 }; 27 28 18 29 class Sequence { 19 30 public: 20 31 explicit Sequence (double start=0., double step=1., Arr_DoubleFunctionOfX f=NULL); 32 explicit Sequence (RandomSequence rseq); 21 33 inline double & Start() { return start_; } 22 34 inline double & Step() { return step_; } … … 25 37 double start_, step_; 26 38 Arr_DoubleFunctionOfX myf_; 39 bool fgrseq_; 40 RandomSequence rseq_; 27 41 }; 28 42
Note:
See TracChangeset
for help on using the changeset viewer.