Changeset 3109 in Sophya for trunk/SophyaLib/NTools/perandom.h
- Timestamp:
- Nov 20, 2006, 2:14:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/perandom.h
r3100 r3109 12 12 #include "histos.h" 13 13 #include "srandgen.h" 14 #include "classfunc.h" 14 15 #include <complex> 15 16 … … 19 20 public: 20 21 typedef r_8 (*Func)(r_8); 21 FunRan(Func f, r_8 xMin=0.0, r_8 xMax=1.0, int_4 nBin=100); 22 FunRan(r_8 *tab, int_4 nBin); 23 FunRan(r_8 *tab, int_4 nBin, r_8 xMin, r_8 xMax); 22 FunRan(ClassFunc& f, r_8 xMin=0.0, r_8 xMax=1.0, int_4 nBin=100, bool pdf=true); 23 FunRan(Func f, r_8 xMin=0.0, r_8 xMax=1.0, int_4 nBin=100, bool pdf=true); 24 FunRan(r_8 *tab, int_4 nBin, bool pdf=true); 25 FunRan(r_8 *tab, int_4 nBin, r_8 xMin, r_8 xMax, bool pdf=true); 24 26 FunRan(Histo &h, bool pdf=true); 27 int_4 BinRandom(void); 25 28 r_8 Random(void); 26 int_4 BinRandom(void); 29 r_8 RandomInterp(void); 30 protected: 31 void create_DF(bool pdf); 27 32 }; 28 33
Note:
See TracChangeset
for help on using the changeset viewer.