Changeset 3616 in Sophya for trunk/SophyaLib/BaseTools/srandgen.h


Ignore:
Timestamp:
May 2, 2009, 11:36:38 AM (16 years ago)
Author:
cmv
Message:
  • sorties de leur contexte de methode de classe, les inline globaux des fonctions aleatoires avaient un nom pas adapte:

Gaussian ComplexGaussian Exponential ne permettent pas de savoir
si il s'agit de la fonction ou de la distribution,
ACTION:
Gaussian -> GaussianRand
ComplexGaussian -> ComplexGaussianRand
Poisson -> PoissonRand
Exponential -> ExponentialRand

+ propagation dans le code Sophya. cmv 02/05/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/srandgen.h

    r3615 r3616  
    2323inline double NorRand()
    2424  {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian();}
    25 inline double Gaussian(double sigma,double mu)
     25inline double GaussianRand()
     26  {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian();}
     27inline double GaussianRand(double sigma)
     28  {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian(sigma);}
     29inline double GaussianRand(double sigma,double mu)
    2630  {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian(sigma,mu);}
    2731
    28 inline complex< r_8 > ComplexGaussian()
     32inline complex< r_8 > ComplexGaussianRand()
    2933  {return RandomGeneratorInterface::GetGlobalRandGenP()->ComplexGaussian();}
    30 inline complex< r_8 > ComplexGaussian(double sig)
     34inline complex< r_8 > ComplexGaussianRand(double sig)
    3135  {return RandomGeneratorInterface::GetGlobalRandGenP()->ComplexGaussian(sig);}
    32 inline double ModComplexGaussian(double sig=1.)
     36inline double ModComplexGaussianRand(double sig=1.)
    3337  {return RandomGeneratorInterface::GetGlobalRandGenP()->ModComplexGaussian(sig);}
    3438
    35 inline double Poisson(double mu, double mumax=-1)
     39inline double PoissonRand(double mu, double mumax=-1)
    3640  {return RandomGeneratorInterface::GetGlobalRandGenP()->Poisson(mu,mumax);}
    3741
    38 inline double Exponential()
     42inline double ExponentialRand()
    3943  {return RandomGeneratorInterface::GetGlobalRandGenP()->Exponential();}
    4044
    41 inline int Gaussian2DRho(double &x,double &y,double mx,double my,double sx,double sy,double ro)
     45inline int Gaussian2DRhoRand(double &x,double &y,double mx,double my,double sx,double sy,double ro)
    4246  {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)
     47inline void Gaussian2DAngRand(double &x,double &y,double mx,double my,double sa,double sb,double teta)
    4448  {return RandomGeneratorInterface::GetGlobalRandGenP()->Gaussian2DAng(x,y,mx,my,sa,sb,teta);}
    4549
Note: See TracChangeset for help on using the changeset viewer.