Changeset 913 in Sophya for trunk/SophyaLib/BaseTools/srandgen.c


Ignore:
Timestamp:
Apr 13, 2000, 5:58:41 PM (25 years ago)
Author:
ansari
Message:

Documentation + Modifs mineures (namespace, etc..) - Reza 13/4/2000

File:
1 edited

Legend:

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

    r851 r913  
    3535*/
    3636
     37/*! \defgroup RandGen
     38    Random number generators */
     39
     40/*! \ingroup  SysTools
     41    \fn frand01
     42    Returns a random number (float) with flat distribution between 0 ... 1
     43*/
     44/*! \ingroup  SysTools
     45    \fn drand01
     46    Returns a random number (double) with flat distribution between 0 ... 1
     47*/
     48/*! \ingroup  SysTools
     49    \fn frandpm1()
     50    Returns a random number (float) with flat distribution between -1 ... 1
     51*/
     52/*! \ingroup  SysTools
     53    \fn drandpm1()
     54    Returns a random number (double) with flat distribution between -1 ... 1 
     55*/
     56
    3757/*=========================================================================*/
    3858/*
     
    4363--
    4464*/
     65
     66/*! \ingroup  SysTools
     67    Fast initialisation of the random number generator \c (drand48)
     68    using a \c long type value (cf \c srand48 )
     69*/
    4570void Ini_Ranf_Quick(long seed_val, int lp)
    4671{
     
    5782        48 bits (cf seed48).
    5883--
     84*/
     85/*! \ingroup  SysTools
     86    complete initialisation of the random number generator \c (drand48)
     87    using a \c using 48 bits (cf \c seed48 )
    5988*/
    6089void Ini_Ranf(unsigned short seed_16v[3], int lp)
     
    73102        de 48 bits (cf seed48).
    74103--
     104*/
     105/*! \ingroup  SysTools
     106    Returns the status (48 bits) of the random number generator \c (drand48)
     107    (cf \c seed48 )
    75108*/
    76109void Get_Ranf(unsigned short seed_16v[3], int lp)
     
    102135--
    103136*/
     137/*! \ingroup  SysTools
     138    Automatic initialisation using the present time
     139*/
    104140void Auto_Ini_Ranf(int lp)
    105141{
     
    151187--
    152188*/
     189/*! \ingroup  SysTools
     190    Normal (Gaussian) random number generator (Mean=0., Sigma=1.)
     191*/
    153192float NorRand(void)
    154193{
     
    190229        Generation aleatoire gaussienne de centre "am" et de sigma "s".
    191230--
     231*/
     232/*! \ingroup  SysTools
     233    Normal (Gaussian) random number generator with the specified mean
     234    (\c am ) and sigma (\c s )
    192235*/
    193236double GauRnd(double am, double s)
Note: See TracChangeset for help on using the changeset viewer.