#include <Random.h>
Public Member Functions | |
| Random (const std::string &name=noname) | |
| void | fromString (const std::string &str) |
| double | Gaussian () |
| void | IncreasedPrecis (bool i) |
| int | RandInt (int i) |
| double | RandU01 () |
| void | ReadStateFull (std::istream &) |
| void | setSeed (int idum) |
| void | Shuffle (std::vector< unsigned > &vec) |
| void | toString (std::string &str) const |
| double | U01 () |
| double | U01d () |
| void | WriteStateFull (std::ostream &) const |
Private Attributes | |
| int | idum |
| bool | incPrec |
| int | iv [NTAB] |
| int | iy |
| std::string | name |
| double | saveGaussian |
| bool | switchGaussian |
Static Private Attributes | |
| static const double | AM =1.0/IM |
| static const double | EPS =3.0e-16 |
| static const double | fact =5.9604644775390625e-8 |
| static const int | IA =16807 |
| static const int | IM =2147483647 |
| static const int | IQ =127773 |
| static const int | IR =2836 |
| static const int | NDIV =(1+(IM-1)/NTAB) |
| static const std::string | noname ="noname" |
| static const int | NTAB =32 |
| static const double | RNMX =(1.0-EPS) |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Random &rng) |
| std::istream & | operator>> (std::istream &in, Random &rng) |
|
explicit |
| void PLMD::Random::fromString | ( | const std::string & | str | ) |
| double PLMD::Random::Gaussian | ( | ) |
|
inline |
| int PLMD::Random::RandInt | ( | int | i | ) |
| double PLMD::Random::RandU01 | ( | ) |
| void PLMD::Random::ReadStateFull | ( | std::istream & | in | ) |
| void PLMD::Random::setSeed | ( | int | idum | ) |
| void PLMD::Random::Shuffle | ( | std::vector< unsigned > & | vec | ) |
| void PLMD::Random::toString | ( | std::string & | str | ) | const |
| double PLMD::Random::U01 | ( | ) |
| double PLMD::Random::U01d | ( | ) |
| void PLMD::Random::WriteStateFull | ( | std::ostream & | out | ) | const |
|
friend |
|
friend |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
Hosted by GitHub
|
1.17.0
|