Changeset 1092 in Sophya for trunk/SophyaLib/NTools/perandom.h


Ignore:
Timestamp:
Jul 26, 2000, 3:15:52 PM (25 years ago)
Author:
ansari
Message:

Histos/Hprof/Histo2D en r_8 cmv 26/7/00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/perandom.h

    r244 r1092  
    1313class FunRan : public Histo {
    1414public:
    15   typedef double (*Func)(double);
    16   FunRan(Func f, float xMin=0.0, float xMax=1.0, int nBin=100);
    17   FunRan(double *tab, int nBin);
    18   FunRan(double *tab, int nBin, float xMin, float xMax);
    19   void IFunRan(double *tab, int nBin);
    20   double Random(void);
    21   int BinRandom(void);
     15  typedef r_8 (*Func)(r_8);
     16  FunRan(Func f, r_8 xMin=0.0, r_8 xMax=1.0, int_4 nBin=100);
     17  FunRan(r_8 *tab, int_4 nBin);
     18  FunRan(r_8 *tab, int_4 nBin, r_8 xMin, r_8 xMax);
     19  void IFunRan(r_8 *tab, int_4 nBin);
     20  r_8 Random(void);
     21  int_4 BinRandom(void);
    2222};
    2323
    2424class FunRan2D EXC_AWARE {
    2525public:
    26 //  typedef double (*Func)(double, double);
    27 //  FunRan2D(Func f, float xMin=0.0, float xMax=1.0, int nBinX=100,
    28 //                   float yMin=0.0, float yMax=1.0, int nBinY=100);
    29   FunRan2D(double *tab, int nBinX, int nBinY);
    30   FunRan2D(double **tab, int nBinX, int nBinY);
     26//  typedef r_8 (*Func)(r_8, r_8);
     27//  FunRan2D(Func f, r_8 xMin=0.0, r_8 xMax=1.0, int_4 nBinX=100,
     28//                   r_8 yMin=0.0, r_8 yMax=1.0, int_4 nBinY=100);
     29  FunRan2D(r_8 *tab, int_4 nBinX, int_4 nBinY);
     30  FunRan2D(r_8 **tab, int_4 nBinX, int_4 nBinY);
    3131  ~FunRan2D();
    32   void Random(double& x, double& y);
    33   void BinRandom(int& x, int& y);
     32  void Random(r_8& x, r_8& y);
     33  void BinRandom(int_4& x, int_4& y);
    3434private:
    3535  FunRan* ranX;
    3636  FunRan** ranY;
    37   int nx;
     37  int_4 nx;
    3838};
    3939
Note: See TracChangeset for help on using the changeset viewer.