Changeset 3616 in Sophya
- Timestamp:
- May 2, 2009, 11:36:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/srandgen.h
r3615 r3616 23 23 inline double NorRand() 24 24 {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian();} 25 inline double Gaussian(double sigma,double mu) 25 inline double GaussianRand() 26 {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian();} 27 inline double GaussianRand(double sigma) 28 {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian(sigma);} 29 inline double GaussianRand(double sigma,double mu) 26 30 {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian(sigma,mu);} 27 31 28 inline complex< r_8 > ComplexGaussian ()32 inline complex< r_8 > ComplexGaussianRand() 29 33 {return RandomGeneratorInterface::GetGlobalRandGenP()->ComplexGaussian();} 30 inline complex< r_8 > ComplexGaussian (double sig)34 inline complex< r_8 > ComplexGaussianRand(double sig) 31 35 {return RandomGeneratorInterface::GetGlobalRandGenP()->ComplexGaussian(sig);} 32 inline double ModComplexGaussian (double sig=1.)36 inline double ModComplexGaussianRand(double sig=1.) 33 37 {return RandomGeneratorInterface::GetGlobalRandGenP()->ModComplexGaussian(sig);} 34 38 35 inline double Poisson (double mu, double mumax=-1)39 inline double PoissonRand(double mu, double mumax=-1) 36 40 {return RandomGeneratorInterface::GetGlobalRandGenP()->Poisson(mu,mumax);} 37 41 38 inline double Exponential ()42 inline double ExponentialRand() 39 43 {return RandomGeneratorInterface::GetGlobalRandGenP()->Exponential();} 40 44 41 inline int Gaussian2DRho (double &x,double &y,double mx,double my,double sx,double sy,double ro)45 inline int Gaussian2DRhoRand(double &x,double &y,double mx,double my,double sx,double sy,double ro) 42 46 {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian2DRho(x,y,mx,my,sx,sy,ro);} 43 inline void Gaussian2DAng (double &x,double &y,double mx,double my,double sa,double sb,double teta)47 inline void Gaussian2DAngRand(double &x,double &y,double mx,double my,double sa,double sb,double teta) 44 48 {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian2DAng(x,y,mx,my,sa,sb,teta);} 45 49
Note:
See TracChangeset
for help on using the changeset viewer.