Changeset 850 in Sophya for trunk/SophyaLib/TArray/utilarr.h


Ignore:
Timestamp:
Apr 10, 2000, 2:57:45 PM (25 years ago)
Author:
ansari
Message:

Corrections divers + RansomSequence - Reza 10/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/utilarr.h

    r813 r850  
    1616typedef float  (* Arr_FloatFunctionOfX)  (float x);
    1717
     18class RandomSequence {
     19public:
     20  enum { Gaussian = 0, Flat = 1 };
     21  RandomSequence(int typ = RandomSequence::Gaussian, double m=0., double s=1.);
     22  double Rand();
     23protected:
     24  int typ_;
     25  double mean_, sig_;
     26};
     27
     28
    1829class Sequence {
    1930public:
    2031  explicit Sequence (double start=0., double step=1., Arr_DoubleFunctionOfX f=NULL);
     32  explicit Sequence (RandomSequence rseq);
    2133  inline double & Start() { return start_; }
    2234  inline double & Step() { return step_; }
     
    2537  double start_, step_;
    2638  Arr_DoubleFunctionOfX myf_;
     39  bool fgrseq_;
     40  RandomSequence rseq_;
    2741};
    2842
Note: See TracChangeset for help on using the changeset viewer.