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


Ignore:
Timestamp:
Apr 30, 2009, 7:07:46 PM (16 years ago)
Author:
ansari
Message:

Adaptation a l'introduction de la suite des classes RandomGeneratorInterface et Cie , Reza 30/04/2009

File:
1 edited

Legend:

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

    r2917 r3613  
    88#include "machdefs.h"
    99#include "mutyv.h"
     10#include "randinterf.h"
    1011
    1112#include <stdlib.h>
     
    5657
    5758  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.);
    5860  virtual  ~RandomSequence();
    5961  virtual MuTyV & Value(sa_size_t k) const ;
    60   double   Rand();
     62  double   Next() const ;
    6163
    6264protected:
    63   int typ_;            //!< random generation type
     65  RNDTypes typ_;            //!< random generation type
    6466  double mean_, sig_;  //!< generation parameters mean and sigma (if needed)
    6567  mutable MuTyV retv_;
     68  mutable RandomGeneratorInterface* rgp_;
    6669};
    6770
Note: See TracChangeset for help on using the changeset viewer.